network

devops-kubernetes-controller

devops-kubernetes-02

/etc/network/interface

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
  address 130.147.180.86
  netmask 255.255.255.192
  gateway 130.147.180.65
  dns-nameservers 130.147.236.5 161.92.35.78
  dns-search cn-132.lan.mycompany.com
$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
  address 130.147.180.86
  netmask 255.255.255.192
  gateway 130.147.180.65
  dns-nameservers 130.147.236.5 161.92.35.78
  dns-search cn-132.lan.mycompany.com
  broadcast 130.147.219.127
  network 130.147.219.0

auto eno3
# iface eno3 inet dhcp
# auto eno3
# iface eno3 inet static
  # address 192.168.11.121
  # netmask 255.255.254.0
  # gateway 192.168.10.1
  # dns-nameservers 61.139.2.69 218.6.200.139

network info

$ nmcli [-p] d[evice] show <interface>
$ nmcli -p d show eno1
===============================================================================
                             Device details (eno1)
===============================================================================
GENERAL.DEVICE:                         eno1
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8C
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               on
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         130.147.180.86/26
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 161.92.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[2]:                           dst = 130.145.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[3]:                           dst = 180.166.223.190/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[4]:                           dst = 185.46.212.34/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[5]:                           dst = 130.140.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[6]:                           dst = 130.147.236.5/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[7]:                           dst = 130.147.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[8]:                           dst = 161.91.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[9]:                           dst = 161.84.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[10]:                          dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.ROUTE[11]:                          dst = 185.166.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[12]:                          dst = 130.146.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[13]:                          dst = 137.55.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[14]:                          dst = 161.83.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[15]:                          dst = 42.99.164.34/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[16]:                          dst = 161.85.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[17]:                          dst = 161.92.35.78/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[18]:                          dst = 140.207.91.234/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[19]:                          dst = 161.88.0.0/16, nh = 0.0.0.0, mt = 0
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         fe80::c634:6bff:feba:318c/64
IP6.GATEWAY:                            --
-------------------------------------------------------------------------------
$ nmcli -p device show eno3
===============================================================================
                             Device details (eno3)
===============================================================================
GENERAL.DEVICE:                         eno3
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8E
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               on
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         192.168.11.121/23
IP4.GATEWAY:                            192.168.10.1
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         fe80::c634:6bff:feba:318e/64
IP6.GATEWAY:                            --
-------------------------------------------------------------------------------
$ nmcli -p device show
===============================================================================
                             Device details (eno2)
===============================================================================
GENERAL.DEVICE:                         eno2
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8D
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          20 (unavailable)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               off
-------------------------------------------------------------------------------
===============================================================================
                             Device details (eno4)
===============================================================================
GENERAL.DEVICE:                         eno4
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8F
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          20 (unavailable)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               off
-------------------------------------------------------------------------------
===============================================================================
                             Device details (eno1)
===============================================================================
GENERAL.DEVICE:                         eno1
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8C
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               on
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         130.147.180.86/26
IP4.GATEWAY:                            --
IP4.ROUTE[1]:                           dst = 161.92.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[2]:                           dst = 130.145.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[3]:                           dst = 180.166.223.190/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[4]:                           dst = 185.46.212.34/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[5]:                           dst = 130.140.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[6]:                           dst = 130.147.236.5/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[7]:                           dst = 130.147.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[8]:                           dst = 161.91.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[9]:                           dst = 161.84.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[10]:                          dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.ROUTE[11]:                          dst = 185.166.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[12]:                          dst = 130.146.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[13]:                          dst = 137.55.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[14]:                          dst = 161.83.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[15]:                          dst = 42.99.164.34/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[16]:                          dst = 161.85.0.0/16, nh = 0.0.0.0, mt = 0
IP4.ROUTE[17]:                          dst = 161.92.35.78/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[18]:                          dst = 140.207.91.234/32, nh = 130.147.180.65, mt = 0
IP4.ROUTE[19]:                          dst = 161.88.0.0/16, nh = 0.0.0.0, mt = 0
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         fe80::c634:6bff:feba:318c/64
IP6.GATEWAY:                            --
-------------------------------------------------------------------------------
===============================================================================
                             Device details (eno3)
===============================================================================
GENERAL.DEVICE:                         eno3
-------------------------------------------------------------------------------
GENERAL.TYPE:                           ethernet
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         C4:34:6B:BA:31:8E
-------------------------------------------------------------------------------
GENERAL.MTU:                            1500
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
WIRED-PROPERTIES.CARRIER:               on
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         192.168.11.121/23
IP4.GATEWAY:                            192.168.10.1
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         fe80::c634:6bff:feba:318e/64
IP6.GATEWAY:                            --
-------------------------------------------------------------------------------
===============================================================================
                              Device details (lo)
===============================================================================
GENERAL.DEVICE:                         lo
-------------------------------------------------------------------------------
GENERAL.TYPE:                           loopback
-------------------------------------------------------------------------------
GENERAL.HWADDR:                         00:00:00:00:00:00
-------------------------------------------------------------------------------
GENERAL.MTU:                            65536
-------------------------------------------------------------------------------
GENERAL.STATE:                          10 (unmanaged)
-------------------------------------------------------------------------------
GENERAL.CONNECTION:                     --
-------------------------------------------------------------------------------
GENERAL.CON-PATH:                       --
-------------------------------------------------------------------------------
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
-------------------------------------------------------------------------------
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            --
-------------------------------------------------------------------------------

Route Details

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.10.1    0.0.0.0         UG    100    0        0 eno3
42.99.164.34    130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
130.140.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eno1
130.145.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eno1
130.146.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eno1
130.147.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eno1
130.147.180.64  0.0.0.0         255.255.255.192 U     0      0        0 eno1
130.147.236.5   130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
137.55.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
140.207.91.234  130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
161.83.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.84.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.85.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.88.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.91.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.92.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eno1
161.92.35.78    130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eno1
180.166.223.190 130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
185.46.212.34   130.147.180.65  255.255.255.255 UGH   0      0        0 eno1
185.166.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eno1
192.168.10.0    0.0.0.0         255.255.254.0   U     100    0        0 eno3

devops-kubernetes-03

$ ifconfig en1
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 6c:96:cf:f2:01:0a
inet6 fe80::81d:93a6:a4d4:32c2%en1 prefixlen 64 secured scopeid 0x6
inet 192.168.10.124 netmask 0xfffffe00 broadcast 192.168.11.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active

$ ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_HWTAGGING,AV>
ether 78:7b:8a:bc:c2:3c
inet6 fe80::1843:dfe3:4c35:c38%en0 prefixlen 64 secured scopeid 0x5
inet 130.147.182.248 netmask 0xfffffe00 broadcast 130.147.183.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect (100baseTX <full-duplex>)
status: active
ifconfig
$ ifconfig
lo0: flags=8049 mtu 16384
options=1203
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201
gif0: flags=8010 mtu 1280
stf0: flags=0<> mtu 1280
XHC20: flags=0<> mtu 0
en0: flags=8863 mtu 1500
options=10b
ether 78:7b:8a:bc:c2:3c
inet6 fe80::1843:dfe3:4c35:c38%en0 prefixlen 64 secured scopeid 0x5
inet 130.147.182.248 netmask 0xfffffe00 broadcast 130.147.183.255
nd6 options=201
media: autoselect (100baseTX )
status: active
en1: flags=8863 mtu 1500
ether 6c:96:cf:f2:01:0a
inet6 fe80::81d:93a6:a4d4:32c2%en1 prefixlen 64 secured scopeid 0x6
inet 192.168.10.124 netmask 0xfffffe00 broadcast 192.168.11.255
nd6 options=201
media: autoselect
status: active
en2: flags=8963 mtu 1500
options=60
ether 2a:00:02:31:1e:a0
media: autoselect 
status: inactive
en3: flags=8963 mtu 1500
options=60
ether 2a:00:02:31:1e:a1
media: autoselect 
status: inactive
bridge0: flags=8863 mtu 1500
options=63
ether 2a:00:02:31:1e:a0
Configuration:
  id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
  maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
  root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
  ipfilter disabled flags 0x2
member: en2 flags=3
        ifmaxaddr 0 port 7 priority 0 path cost 0
member: en3 flags=3
        ifmaxaddr 0 port 8 priority 0 path cost 0
nd6 options=201
media: 
status: inactive
p2p0: flags=8843 mtu 2304
ether 0e:96:cf:f2:01:0a
media: autoselect
status: inactive
awdl0: flags=8943 mtu 1484
ether 6e:66:62:10:bb:fa
inet6 fe80::6c66:62ff:fe10:bbfa%awdl0 prefixlen 64 scopeid 0xb
nd6 options=201
media: autoselect
status: active
utun0: flags=8051 mtu 2000
inet6 fe80::2c33:8275:3276:346f%utun0 prefixlen 64 scopeid 0xc
nd6 options=201

Last updated