[root@ssopolicy1 ~]# ifconfig eno16777736
eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.245.243 netmask 255.255.255.0 broadcast 192.168.245.255
inet6 fe80::20c:29ff:feb9:7596 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:b9:75:96 txqueuelen 1000 (Ethernet)
RX packets 240 bytes 25238 (24.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 157 bytes 17654 (17.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ether 00:0c:29:b9:75:96 >>> Using it
[root@ssopolicy1 ~]# cat /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:b9:75:96", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
[root@ssopolicy1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE="eth1"
BOOTPROTO="static"
HWADDR="00:0c:29:b9:75:96"
IPADDR=192.168.245.240
NETMASK=255.255.255.0
ONBOOT="yes"
[root@ssopolicy1 ~]# ifconfig
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.245.240 netmask 255.255.255.0 broadcast 192.168.245.255
inet6 fe80::20c:29ff:feb9:7596 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:b9:75:96 txqueuelen 1000 (Ethernet)
RX packets 125 bytes 14606 (14.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 92 bytes 12780 (12.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@ssopolicy1 ~]# nmcli dev status
DEVICE TYPE STATE CONNECTION
eth1 ethernet connected System eth1
virbr0 bridge connecting (getting IP configuration) virbr0
lo loopback unmanaged --
Thanks,
No comments:
Post a Comment