[root@server0 ~
]# vim /etc/sysconfig/network-scripts/
[root@room4pc09 桌面]# cat /etc/sysconfig/network-scripts/ifcfg-pan #檢視pan網絡卡
hwaddr=00
:0c:29:
59:97:
97type
=ethernet
bootproto
=dhcp #自動獲取ip
defroute
=yes
peerdns
=yes
peerroutes
=yes
ipv4_failure_fatal
=noipv6init
=yes
ipv6_autoconf
=yes
ipv6_defroute
=yes
ipv6_peerdns
=yes
ipv6_peerroutes
=yes
ipv6_failure_fatal
=noname
=pan
uuid
=72e8504b-
1b21-
4da2-b557-
96a7647d4424
onboot
=yes
[root@a ~
]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 #檢視eth0網絡卡
type
=ethernet #網路型別ethernet(乙太網),bridge(橋)
bootproto
=none #手動配置ip位址
defroute
=yes
ipv4_failure_fatal
=noipv6init
=yes
ipv6_autoconf
=yes
ipv6_defroute
=yes
ipv6_failure_fatal
=noname
=eth0 #網絡卡名稱
device
=eth0
onboot
=yes #開機自啟
ipaddr
=192.168
.4.100
prefix=24
gateway
=192.168
.4.255
ipv6_peerdns
=yes
ipv6_peerroutes
=yes
uuid
=5fb06bd0-
0bb0-
7ffb-
45f1-d6edd65f3e03
[root@room9pc01 bin]# netstat -anptu
[root@room9pc01 bin]# ls /etc/vsftpd/vsftpd.conf #檢視ftp埠主配置檔案
/etc/vsftpd/vsftpd.conf
[root@room9pc01 bin]# netstat -anptu |grep vsftpd #檢視ftp埠開放的ip
tcp 0
00.0
.0.0:21
0.0.0.0:
*listen
1396
/vsftpd
[root@a ~
]# systemctl status networkmanager #檢視圖形化網絡卡狀態
● networkmanager.service - network manager
loaded:
loaded
(/usr/lib/systemd/system/networkmanager.service; enabled; vendor preset: enabled)
active:
active
(running) since 三 2019-02
]# systemctl status network #檢視命令列的網絡卡狀態
● network.service -
lsb: bring up/down networking
loaded:
loaded
(/etc/rc.d/init.d/network)
active:
failed
(result: exit-code) since 三 2019-02
Linux網絡卡配置檔案解釋
裝置 eth0 device eth0 ip的配置方法 static 固定ip,dhcp 動態ip,none 手動 bootproto none mac位址 hwaddr 00 14 5e 68 4f 78 ip位址 ipaddr 114.258.138.137 網路掩碼 netmask 255.2...
Linux 網絡卡配置檔案設定
本文摘自於網路 etc hosts 本地主機ip位址對映,可以有多個別名 etc services 埠號與標準服務之間的對應關係 etc sysconfig network 設定主機名,閘道器,網域名稱 hostanme zjw.com 主機名 需要重啟計算機才有效 gateway 192.168....
linux 網絡卡配置檔案詳解
配置檔案位置 etc sysconfig network scripts ifcfg eth0 1.device eth0 網絡卡的名字 2.hwaddr 00 0c 29 90 89 d9 hwaddr hardware address 硬體位址 mac位址 3.type ethernet 網路型...