查看網(wǎng)卡所在區(qū)域:firewall-cmd --get-zone-of-interface=eno16777736
創(chuàng)新互聯(lián)公司服務(wù)項(xiàng)目包括碾子山網(wǎng)站建設(shè)、碾子山網(wǎng)站制作、碾子山網(wǎng)頁制作以及碾子山網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,碾子山網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到碾子山省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!
查看服務(wù)是否被允許:firewall-cmd --zone=public --query-service=http
防火墻添加端口:
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-port=9090/tcp
firewall-cmd --reload
firewall-cmd --permanent --zone=public --add-port=8080-8081/tcp
irewall-cmd --reload
nmcli con show [active]
nmcli con show "static-eth0"
nmcli dev status
nmcle dev show eth0
apply modification
systemctl restart network.service
nmcli con reload
nmcli connection show 查看鏈接信息
nmcli device show 查看設(shè)備信息
nmcli device status 查看設(shè)備狀態(tài)
hostnamectl set-hostname desktop.group8.example.com
nmcli connection show
nmcli con modify eno16777736 ipv4.addresses "172.24.8.10/24 172.24.8.254" ipv4.DNS "172.24.8.254"
nmcli con modify eno16777736 connection.autoconnect yes ipv4.method manual
nmcli con up eno16777736
systemctl restart network .service
add additional network ipv4 address
nmcli con add con-name ''yeslab" ifname eth0 type ethernet ip4 172.25.1.11/24 gw4 172.25.1.254 新建連接yeslab 并配置IP地址
nmcli con modify "yeslab" ipv4.dns 172.25.254.254 配置yeslab連接dns
nmcli con modify "yeslab" ipv4.addresses 172.25.1.18/24 修改yeslab的IP地址
nmcli con modify "yeslab" connection.autoconnect yes 啟用 yeslab的配置
nmcli con modify "system eth0" connection.autoconnect no 關(guān)閉system eth0 d的配置
systemctl restart network .service 重啟網(wǎng)絡(luò)服務(wù)
nmcli con modify "system eth0" +ipv4.addresses 10.1.1.1/24 為system eth0添加 地址 ,可以同時(shí)擁有多個(gè)地址
hostnamectl set-hostname serverX.example.com 配置系統(tǒng)名稱
網(wǎng)絡(luò)綁定
建立team 端口nmcel con add type team con-name y-team ifname team1 config '{"runner":{"name":"loadbalance"}}'
nmcle con mod y-team ipv4.addresses '192.168.1.100/24' 為team口配置IP地址
nmcli con mod y-team ipv4.method manual 配置地址為固定
綁定從物理端口
nmcli con add type team-slave con-name team1-port1 ifname eth2 master team1
nmcli con add type team-slave con-name team1-port2 ifname eth3 master team1
Systemctl restart network
nmcli con up team1
teamdctl team1 state
nmcli device disconnect eth2 關(guān)閉端口
Configuring software bridge
建立一個(gè)橋接
Nmcli con add type bridge con-name br1 ifname br1
Nmcli con mod br1 ipv4.addresses '192.168.1.100/24
Nmcli con mod br1 ipv4.method manual
Nmcli con add type bridge-slave con-name br1-port1 ifname eth2 master br1
Nmcli con add type bridge-slave con-name br1-port2 ifname eth3 master br1
Ip link
Brctl show
Ping -1 bri 192.168.1.254 使用橋接端口PING測試
Ping -c 10 -I br1 192.168.1.254
Ipv6配置
nmcli connection add con-name y-6 ifname eth0 type ethernet ip6 2016:abcd::2/64
Nmcli connettionh modify y-6 ipv6.mdthod manual
Nmcli connection mokify y-6connection.autoconnect yes
nmcli con modify "system eth0" connection.autoconnect no
Systemctl restart network
Nmcli device show
```![](/upload/otherpic52/12302.jpg)