Creating and Configuring Network Bonding Nic
Creating and Configuring Network Bonding Nic
these are the sort of info you need provide your network team with when configuring
switches etc.
# we now have an extra network interface created, enp0s8 is the one we've just
created on oracle virtual box
we now need to combine both and create a bond.
# [root@olivier-linux-server jenkins]# ifconfig | more
# enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.85 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::131d:dc9c:94ac:6e5b prefixlen 64 scopeid 0x20<link>
inet6 fdaa:bbcc:ddee:0:b8fc:8c57:9fa4:79b9 prefixlen 64 scopeid
0x0<global>
inet6 2a00:23c7:671f:fd00:42bc:4efa:9687:dd0a prefixlen 64 scopeid
0x0<global>
ether 08:00:27:63:c6:c0 txqueuelen 1000 (Ethernet)
RX packets 275 bytes 92165 (90.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 248 bytes 30758 (30.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
# add the below parameters below
# BOOTPROTO ==> none or static is if you want to assign a static IP
# ONBOOT ==> to enable when the system reboots
# IPADDR ==> i chose that IP because that IP does not exist yet and nobody has
taken it
you can confirm this by pinging it and you wont get a response.
[jenkins@olivier-linux-server ~]$ ping -c 1 192.168.1.80
PING 192.168.1.80 (192.168.1.80) 56(84) bytes of data.
From 192.168.1.85 icmp_seq=1 Destination Host Unreachable
--- 192.168.1.80 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms
# GATEWAY ==> Ip address of your modem
# BONDING_OPTS ==> this is the speed & state
# edit the first NIC file & delete all its content
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
# add the below config
# HWADDR ==> use the ifconfig command and its the value of ether for your interface
# MASTER ==> the file we created earlier on is the master
TYPE=Ethernet
BOOTPROTO=none
DEVICE=enp0s3
ONBOOT=yes
HWADDR=”MAC from the ifconfig command”
MASTER=bond0
SLAVE=yes
## kernel
interfaces between your HW & yhour SW
SW ==> user, application (browser, sendmail) shell then kernel and HW (CPU, RAM,
HD)
we execute commands and these commands are forwarded to the kernel
kernel: core and heart of the OS, layer that sit between HW & SW
Its responsible for tasks such as disk management, process management,
security, routing table and systems reosurces management
the kernel has large parts of its functionality slpit into modules
small pieces of codes that can be loaded and unloaded at will
this helps keep the base kernel image smaller so that only code thats actually
needed in loaded into RAM
###### show all your interfaces & add / configure a new interface(s)
https://stackoverflow.com/questions/8599424/understanding-routing-table-entry
# easier
[root@olivier-linux-server network-scripts]# ip route
default via 192.168.1.254 dev enp0s3 proto dhcp metric 100
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1
172.18.0.0/16 dev br-2456ea71b02b proto kernel scope link src 172.18.0.1
192.168.1.0/24 dev enp0s3 proto kernel scope link src 192.168.1.85 metric 100