CSCF Infrastructure Technology Group


CSI  » Setup Recipes  » Services  » Networking  » Static  » iproute2

Static Network Setup for CS Internet VLans that have only IPv4 addresses

Although it is possible to specify "network" and "broadcast" configuration lines, they are not only unnecessary, they can be a source of configuration error that is hard to spot. You should allow the system to compute both these values from the "netmask" and "address" configuration.

Example Configuration

Using NIC dev eth0, vlan "cscfnet" for this example, you should end up with a file in "/etc/network/interfaces.d" or a section in the /etc/network/interfaces file that contains the lines:

Static Network Setup for CS Internet Vlans that have both IPv4 and IPv6 addresses.

The following CS Internet Vlans also have an IPv6 address range assigned to them.

Vlan Name IPv4 subnet IPv6 subnet
 cscfnet  129.97.15.0/24  2620:101:f000:4805::64
 cs-teaching-net   129.97.167.0/26  2620:101:f000:4804::64
 cs-general-net  129.97.167.64/26    2620:101:f000:4803::64

which means we want to assign the IPv6 address as well.

The CSCF guideline for assigning this IPv6 address is to use the value of the right most octet of the IPv4 address as the right most hextet of the IPv6 address.

Example Configuration

Using NIC dev eno1, vlan "cs-general-net" for this example, you should end up with a file in "/etc/network/interfaced.d" or a section in the /etc/network/interfaces file that contains the lines:

Policy-Based Routing Network Setup for CS's UW Campus-Wide Intranet VLans

Page not found | Computer Science Computing Facility (CSCF) | University of Waterloo

Page not found

The requested page could not be found.

Example Configuration

Policy-Based Routing Network Setup for CS Local-Area Intranet VLans

Page not found | Computer Science Computing Facility (CSCF) | University of Waterloo

Page not found

The requested page could not be found.

Example Configuration

Using NIC dev enp4s0f0, you should end up with a file in "/etc/network/interfaces.d" or a section in the /etc/network/interfaces file that contains at least these lines (replacing the X and Y labels as appropriate):

Policy-Based Routing Network Setup having Multiple-Nics, Multiple-IPv4 and IPv6 Addresses