添加网络适配器
程序员文章站
2022-05-10 13:09:29
...
[aaa@qq.com network-scripts]# pwd
/etc/sysconfig/network-scripts
[aaa@qq.com network-scripts]# cat ifcfg-ens37
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
NAME=ens37
UUID=6eb8ffc4-7b53-48f6-bf48-6ef59e895157
DEVICE=ens37
ONBOOT=yes
IPADDR=176.16.1.88
[aaa@qq.com network-scripts]# systemctl restart network
[aaa@qq.com network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:2b:b5:b8 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.88/24 brd 10.0.0.255 scope global ens33
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe2b:b5b8/64 scope link
valid_lft forever preferred_lft forever
3: ens37: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:2b:b5:c2 brd ff:ff:ff:ff:ff:ff
inet 176.16.1.88/16 brd 176.16.255.255 scope global ens37
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:fe2b:b5c2/64 scope link
valid_lft forever preferred_lft forever