Creating virtual interface
[root@sam network-scripts]# cd /etc/sysconfig/network-scripts
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s25:0
UUID=2a0b8f3c-e991-4a09-88a8-6fdefe273193
DEVICE=enp0s25:0
ONBOOT=yes
IPADDR=192.168.10.9
PREFIX=24
GATEWAY=192.168.10.1
DNS1=192.168.10.110
DOMAIN=expanor.local
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
~
~
~
[root@sam network-scripts]# systemctl restart network
[root@sam network-scripts]# ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.8 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 4428211 bytes 6120463158 (5.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1943017 bytes 140766095 (134.2 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.9 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 9668 bytes 985822 (962.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9668 bytes 985822 (962.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@sam network-scripts]# ping -c 3 192.168.10.9
PING 192.168.10.9 (192.168.10.9) 56(84) bytes of data.
64 bytes from 192.168.10.9: icmp_seq=1 ttl=64 time=0.077 ms
64 bytes from 192.168.10.9: icmp_seq=2 ttl=64 time=0.032 ms
[root@sam network-scripts]# 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.8/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.9/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
[root@sam network-scripts]#
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1031 cd /etc/sysconfig/network-scripts/
1032 pwd
1033 ls
1034 cp ifcfg-enp0s3 ifcfg-enp0s3:0
1035 vi ifcfg-enp0s3:0
1036 more ifcfg-enp0s3:0
1037 systemctl restart network
1038 ifconfig
1039 ifcofig -a
1040 ifconfig -a
1041 vi ifcfg-enp0s3:0
1042 ls
1043 ifconfig ifcfg-enp0s3:0 plumb
1044 ifconfig enp0s3:0 plumb
1045 ifconfig -a
1046 systemctl restart network
1047 ifconfig -a
1048 ip addr show
1049 ls
1050 more ifcfg-enp0s3:0
1051 ifconfig enp0s3:0 plumb
1052 ip addr show
1053 ifconfig enp0s3:0 192.168.10.19 up
1054 ifconfig -a
1055 history
[root@sudhir network-scripts]#
[root@sam network-scripts]# cd /etc/sysconfig/network-scripts
[root@sam network-scripts]# cp -p cfg-enp0s25 ifcfg-enp0s25:0
[root@sam network-scripts]# vi ifcfg-enp0s25:0TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=enp0s25:0
UUID=2a0b8f3c-e991-4a09-88a8-6fdefe273193
DEVICE=enp0s25:0
ONBOOT=yes
IPADDR=192.168.10.9
PREFIX=24
GATEWAY=192.168.10.1
DNS1=192.168.10.110
DOMAIN=expanor.local
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_PRIVACY=no
~
~
~
[root@sam network-scripts]# systemctl restart network
[root@sam network-scripts]# ifconfig -a
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.8 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 4428211 bytes 6120463158 (5.7 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1943017 bytes 140766095 (134.2 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.9 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 9668 bytes 985822 (962.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9668 bytes 985822 (962.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[root@sam network-scripts]# ping -c 3 192.168.10.9
PING 192.168.10.9 (192.168.10.9) 56(84) bytes of data.
64 bytes from 192.168.10.9: icmp_seq=1 ttl=64 time=0.077 ms
64 bytes from 192.168.10.9: icmp_seq=2 ttl=64 time=0.032 ms
[root@sam network-scripts]# 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.8/24 brd 192.168.10.255 scope global enp0s25
valid_lft forever preferred_lft forever
inet 192.168.10.9/24 brd 192.168.10.255 scope global secondary enp0s25:0
valid_lft forever preferred_lft forever
inet6 fe80::223:aeff:feb0:320c/64 scope link
valid_lft forever preferred_lft forever
[root@sam network-scripts]#
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1031 cd /etc/sysconfig/network-scripts/
1032 pwd
1033 ls
1034 cp ifcfg-enp0s3 ifcfg-enp0s3:0
1035 vi ifcfg-enp0s3:0
1036 more ifcfg-enp0s3:0
1037 systemctl restart network
1038 ifconfig
1039 ifcofig -a
1040 ifconfig -a
1041 vi ifcfg-enp0s3:0
1042 ls
1043 ifconfig ifcfg-enp0s3:0 plumb
1044 ifconfig enp0s3:0 plumb
1045 ifconfig -a
1046 systemctl restart network
1047 ifconfig -a
1048 ip addr show
1049 ls
1050 more ifcfg-enp0s3:0
1051 ifconfig enp0s3:0 plumb
1052 ip addr show
1053 ifconfig enp0s3:0 192.168.10.19 up
1054 ifconfig -a
1055 history
[root@sudhir network-scripts]#
No comments:
Post a Comment