Saturday, 8 December 2018

Configure Static IPv6 Networking on RHEL 7 Machines

Configure Static IPv6 Networking on RHEL 7 Machines1Red Hat Enterprise Linux (RHEL) 7 fully supports IPv6 network. Configuring an IPv6 network is not difficult in RHEL 7, but you must have some basic understanding of IPv6 addressing scheme.

In this article, we will configure an IPv6 Network between two Red Hat Enterprise Linux (RHEL) 7 machines by providing static IP addresses.

 

System Specification:

We have two virtual machines. we have allocate the following IP addresses, that we will use for our machines.

Machine IPv6 Address
server1.example.com fddb:fe2a:ab1e::c0a8:94/64
desktop1.example.com fddb:fe2a:ab1e::c0a8:95/64
Gateway fddb:fe2a:ab1e::c0a8:50/64

 

Configure IPv6 Networking:

Connect to server1.example.com using ssh and configure IPv6 network as follows.

[root@server1 ~]# nmcli connection modify eno16777728 ipv6.method manual ipv6.addresses "fddb:fe2a:ab1e::c0a8:94/64 fddb:fe2a:ab1e::c0a8:50" [root@server1 ~]# nmcli c down eno16777728 ; nmcli c up eno16777728 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1) [root@server1 ~]# ip addr 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: eno16777728: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
      link/ether 00:0c:29:63:0c:9a brd ff:ff:ff:ff:ff:ff
      inet 192.168.116.11/24 brd 192.168.116.255 scope global eno16777728
         valid_lft forever preferred_lft forever
      inet6 fddb:fe2a:ab1e::c0a8:94/64 scope global
         valid_lft forever preferred_lft forever
      inet6 fe80::20c:29ff:fe63:c9a/64 scope link
         valid_lft forever preferred_lft forever 3: eno33554968: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
      link/ether 00:0c:29:63:0c:a4 brd ff:ff:ff:ff:ff:ff [root@server1 ~]#

Now, connect to desktop1.example.com and configure IPv6 network as follows.

[root@desktop1 ~]# nmcli connection modify eno16777728 ipv6.method manual ipv6.addresses "fddb:fe2a:ab1e::c0a8:95/64 fddb:fe2a:ab1e::c0a8:50" [root@desktop1 ~]# nmcli c down eno16777728 ; nmcli c up eno16777728 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2) [root@desktop1 ~]# ip addr 1: lo: 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: eno16777728: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:68:ae:66 brd ff:ff:ff:ff:ff:ff inet 192.168.116.12/24 brd 192.168.116.255 scope global eno16777728 valid_lft forever preferred_lft forever inet6 fddb:fe2a:ab1e::c0a8:95/64 scope global valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe68:ae66/64 scope link valid_lft forever preferred_lft forever 3: eno33554968: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:68:ae:70 brd ff:ff:ff:ff:ff:ff [root@desktop1 ~]#

Ping both IPv6 addresses from any machine to confirm the network connectivity.

[root@desktop1 ~]# ping6 fddb:fe2a:ab1e::c0a8:94 PING fddb:fe2a:ab1e::c0a8:94(fddb:fe2a:ab1e::c0a8:94) 56 data bytes 64 bytes from fddb:fe2a:ab1e::c0a8:94: icmp_seq=2 ttl=64 time=0.299 ms 64 bytes from fddb:fe2a:ab1e::c0a8:94: icmp_seq=3 ttl=64 time=0.261 ms 64 bytes from fddb:fe2a:ab1e::c0a8:94: icmp_seq=4 ttl=64 time=0.268 ms 64 bytes from fddb:fe2a:ab1e::c0a8:94: icmp_seq=5 ttl=64 time=0.257 ms ^C --- fddb:fe2a:ab1e::c0a8:94 ping statistics --- 5 packets transmitted, 4 received, 20% packet loss, time 4019ms rtt min/avg/max/mdev = 0.257/0.271/0.299/0.020 ms [root@desktop1 ~]# ping6 fddb:fe2a:ab1e::c0a8:95 PING fddb:fe2a:ab1e::c0a8:95(fddb:fe2a:ab1e::c0a8:95) 56 data bytes 64 bytes from fddb:fe2a:ab1e::c0a8:95: icmp_seq=1 ttl=64 time=0.071 ms 64 bytes from fddb:fe2a:ab1e::c0a8:95: icmp_seq=2 ttl=64 time=0.056 ms 64 bytes from fddb:fe2a:ab1e::c0a8:95: icmp_seq=3 ttl=64 time=0.060 ms ^C --- fddb:fe2a:ab1e::c0a8:95 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.056/0.062/0.071/0.009 ms [root@desktop1 ~]#

We have successfully configured static IPv6 networking between two Red Hat Enterprise Linux (RHEL) 7 machines.

Configure Static IPv6 Networking on RHEL 7 Machines


YOU MIGHT ALSO LIKE:

No comments:

Post a Comment