Lab 11.2 Why are both addresses added to the static route configuration?
I'm finding this lab particularly difficult because I'm unclear of which IP addresses to use at each step.
- The first point of confusion is whether this command is required?
Where X and Y are unique to the lab/classroom.
# ip addr add ADDRESS/24 dev eth0
The lab does not state why this is necessary so I've made an assumption that it's not required if we use the existing IP addr of the device.
Using the following known properties for devices on separate networks (and assuming VLAN has been configured for the interface)
IP addr 10.1.1.4/24
External IP 22.214.171.124
IP addr 192.168.7.9/24
External IP 126.96.36.199
- Configuration of the static route
The lab solution shows two entries. Are both entries required on each environment?
# /etc/network/interfaces # Device X - Debian up route add -net 192.168.7.9/24 gw 188.8.131.52 dev wlan0
# /etc/sysconfig/network-scripts/route-INTERFACE # Device Y - Fedora 10.1.1.4/24 via 184.108.40.206 dev eth0
- Restart networking services and test
systemctl restart network
Debian - this is different to what's specified in the lab
systemctl restart network-manager
I'm not in the position to be able to test this because of a lack of access to devices, some validation would be great