Network
Configure
NOTE: If the name cannot be determined for whatever reason, traditional names such as eth0 are used. The default names for network cards are based on firmware, device topology, and device types.
- device topology:
- en - Ethernet
- wl - WLAN
- ww - WWAN
- type of adapter:
- o - onboard
- s - hotplug slot
- p - PCI location
Device names such as enp0s3 stands for an Ethernet device, PCI location 0, hot plug slot 3.
$ sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
#Shaw Router
auto enp10s0
iface enp10s0 inet static
address 10.0.0.5
netmask 255.255.255.0
gateway 10.0.0.1
auto enp6s0f0
allow-hotplug enp6s0f0
iface enp6s0f0 inet static
address 192.168.0.1
netmask 255.255.255.0
auto enp6s0f0:0
iface enp6s0f0:0 inet static
address 192.168.0.220
netmask 255.255.255.0
auto enp6s0f0:1
iface enp6s0f0:1 inet static
address 192.168.0.221
netmask 255.255.255.0
auto enp6s0f0:2
iface enp6s0f0:2 inet static
address 192.168.0.222
netmask 255.255.255.0
auto enp6s0f0:3
iface enp6s0f0:3 inet static
address 192.168.0.223
netmask 255.255.255.0
auto enp6s0f0:4
iface enp6s0f0:4 inet static
address 192.168.0.224
netmask 255.255.255.0
auto enp6s0f0:5
iface enp6s0f0:5 inet static
address 192.168.0.251
netmask 255.255.255.0
auto enp6s0f1
allow-hotplug enp6s0f1
iface enp6s0f1 inet static
address 192.168.0.29
netmask 255.255.255.0
auto enp7s0f0
allow-hotplug enp7s0f0
iface enp7s0f0 inet static
address 192.168.0.75
netmask 255.255.255.0
auto enp7s0f1
allow-hotplug enp7s0f1
iface enp7s0f1 inet static
address 192.168.0.76
netmask 255.255.255.0
Command
# systemctl start networking
# systemctl restart networking
# systemctl status networking
# Eth0 to Eth5 network switch
allow-hotplug eno1
iface eno1 inet manual
pre-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
allow-hotplug enp3s0f0
iface enp3s0f0 inet manual
pre-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
allow-hotplug enp3s0f1
iface enp3s0f1 inet manual
pre-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
allow-hotplug enp4s0f0
iface enp4s0f0 inet manual
pre-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
allow-hotplug enp4s0f1
iface enp4s0f1 inet manual
pre-up ifconfig $IFACE up
pre-down ifconfig $IFACE down
# Setup an IP address for our bridge
auto br0
iface br0 inet static
bridge_ports eno1 enp3s0f0 enp3s0f1 enp4s0f0 enp4s0f1
address 10.0.0.5
broadcast 10.0.0.255
netmask 255.255.255.0
gateway 10.0.0.1