ifconfig command does not display newly added interface information if added using command line interface.
1. List currect interface configuration information
[root@sam ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:ae:b0:32:0c brd ff:ff:ff:ff:ff:ff
inet 192.168.10.120/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.221/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet 192.168.10.118/24 brd 192.168.10.255 scope global secondary enp0s25:1
valid_lft forever preferred_lft forever
inet 192.168.10.122/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
2. Add new ip address to the interface
[root@sam ~]# ip addr add dev enp0s25:3 192.168.10.123/24
[root@sam ~]#
3. Open a new Putty window and should be able to get login prompt^C
4. List conrunt ip information
[root@sam ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:ae:b0:32:0c brd ff:ff:ff:ff:ff:ff
inet 192.168.10.120/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.221/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet 192.168.10.118/24 brd 192.168.10.255 scope global secondary enp0s25:1
valid_lft forever preferred_lft forever
inet 192.168.10.122/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.123/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
[root@sam ~]#
5. Display interface information using ifconfig command
[root@sam ~]# ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.120 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::223:aeff:feb0:320c prefixlen 64 scopeid 0x20<link>
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
RX packets 475862 bytes 32081767 (30.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 154846 bytes 59513891 (56.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 21 memory 0xf7ae0000-f7b00000
enp0s25:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.221 netmask 255.255.255.0 broadcast 192.168.10.255
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
device interrupt 21 memory 0xf7ae0000-f7b00000
enp0s25:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.118 netmask 255.255.255.0 broadcast 192.168.10.255
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
device interrupt 21 memory 0xf7ae0000-f7b00000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 476 bytes 139565 (136.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 476 bytes 139565 (136.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:a0:6d:79 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:a0:6d:79 txqueuelen 500 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@sam ~]#
1. List currect interface configuration information
[root@sam ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:ae:b0:32:0c brd ff:ff:ff:ff:ff:ff
inet 192.168.10.120/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.221/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet 192.168.10.118/24 brd 192.168.10.255 scope global secondary enp0s25:1
valid_lft forever preferred_lft forever
inet 192.168.10.122/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
2. Add new ip address to the interface
[root@sam ~]# ip addr add dev enp0s25:3 192.168.10.123/24
[root@sam ~]#
3. Open a new Putty window and should be able to get login prompt^C
4. List conrunt ip information
[root@sam ~]# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:23:ae:b0:32:0c brd ff:ff:ff:ff:ff:ff
inet 192.168.10.120/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.221/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet 192.168.10.118/24 brd 192.168.10.255 scope global secondary enp0s25:1
valid_lft forever preferred_lft forever
inet 192.168.10.122/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.123/24 scope global secondary enp0s25
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0
valid_lft forever preferred_lft forever
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:a0:6d:79 brd ff:ff:ff:ff:ff:ff
[root@sam ~]#
5. Display interface information using ifconfig command
[root@sam ~]# ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.120 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::223:aeff:feb0:320c prefixlen 64 scopeid 0x20<link>
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
RX packets 475862 bytes 32081767 (30.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 154846 bytes 59513891 (56.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 21 memory 0xf7ae0000-f7b00000
enp0s25:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.221 netmask 255.255.255.0 broadcast 192.168.10.255
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
device interrupt 21 memory 0xf7ae0000-f7b00000
enp0s25:1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.118 netmask 255.255.255.0 broadcast 192.168.10.255
ether 00:23:ae:b0:32:0c txqueuelen 1000 (Ethernet)
device interrupt 21 memory 0xf7ae0000-f7b00000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 476 bytes 139565 (136.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 476 bytes 139565 (136.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:a0:6d:79 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0-nic: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 52:54:00:a0:6d:79 txqueuelen 500 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@sam ~]#
No comments:
Post a Comment