Roadmap for this tutorial: In this tutorial, the procedures for creating a new network are described, including the IST request for the network VLAN assignment, selection of names and addresses, route-point implementation and required documentation.
A network can be based on a public 129.97.0.0/16 address ("Maintain" zone cs-inet), a 172.19.0.0/16 campus-routable address ( cs_campus), or a 10.15.0.0.16 CS-only address ( cs_private).. See "CSCF networking philosophy and schema" for more details.
The network must be allocated in the IST "Infoblox" database. You will need to choose a network name and size (CIDR block size). For public addresses, you will also need to indicate how many addresses (if any) are to be reserved for the IST dynamic address system. Typically we give back eight addresses for a /24 network. Use the IST ST System to request VLAN ids (see the template below).
IST will advise of the VLAN tag that is assigned to the new network.
Requests to hostmaster for a new network and VLAN should contain the following information:
Hostmaster:
Please allocate the network and a VLAN tag for 10.15.3.0/24 in Infoblox for OU "CS".
Thank you,
You must decide whether to route the new network on the Netscreen firewalls or on the HP devices. In the latter case you must know which building the network will be in (MC or DC). With this information, you can assign the route-point names and addresses. The basic form for the name is:
device-name-network-name
The numbers are always the first two usable addresses in the network (typically, but not always, the .1 and .2 addresses). See "Host numbering within networks" for more information.
For networks that are routed on HP switches we use VRRP routing to provide redundancy, with the two router in a building providing redundancy for each other (redundancy does not span buildings). We typically put the master route-point on the "-cs2" router, and the backup on the "-cs1" router. See the the network topology tutorial for more details. [One notable exception to this practice: the "math student organization" network, VLAN 134, provides connectivity for the "mirror" site mirror.csclub.uwaterloo.ca. Because this host generates significant external traffic, its network route-points put the master on the "-cs1" router to place it closer to our external gateway.]
Networks and route-points must be properly documented, as follows:
If the new network is to support clients that require DHCP services, you must ensure that our DHCP server is set up correctly. The following is a quick summary:
'a.b.c.d' > 's',
'a.b.c.d' is the base address of the network (the "zero" address), and ='s'
is the CIDR bit-size of the network (e.g. 24 for a /24 network).
/etc/dhcp3/cscfdhcp/dipaas/log/dipaas.log-dc-dns-2.cs.uwaterloo.ca
You will also need to decide on whether or not the routing configuration will need to specify DHCP helpers. The templates show below list three helper addresses: one in CSCF and two in IST. If you know you don't need these, don't include them in the configuration.
Create configuration scripts for the new network based on the templates shown below. Store the configurations in a Wiki page linked to from the "Configurations" column in the appropriate table in the current network assignments Wiki page.
Regardless of the device below, you will have to do some manual discovery of the correct values to use in the script. You cannot just cut & paste the templates without modification.
For HP routing, you will need to determine an available "vrid" to use. These are integer numbers between 0 and 255 and are not centrally managed. The numbers you use aren't terribly important as long as they are unique from other route-points.
To determine an available "vrid", use the
show vrrp
to get a list of all the current route-points. You can do this on either one of the pair of routers (-cs1 or -cs2) since the vrid will be the same on each for each route-point. The output will look something like:
VRRP Virtual Router Statistics Information Vlan ID : 812 Virtual Router ID : 254 State : Master Up Time : 23 days Virtual MAC Address : 00005e-0001fe Master's IP Address : 10.15.18.1 Associated IP Addr Count : 1 Near Failovers : 0 Advertise Pkts Rx : 1 Become Master : 1 Zero Priority Rx : 0 Zero Priority Tx : 0 Bad Length Pkts : 0 Bad Type Pkts : 0 Mismatched Interval Pkts : 0 Mismatched Addr List Pkts : 0 Mismatched IP TTL Pkts : 0 Mismatched Auth Type Pkts : 0
Note the line
Virtual Router ID : 254
assigning the number 254 to the virtual route. You need to choose a number that is unique amongst the entire set of route-points on the switch. Our current practice is to choose the next unused number in the decreasing sequence starting at 255. As of the time of writing (May 2010):
The -cs2 switch will be the ".1" address in the new network (which may or may not be the actual number 1, depending on the CIDR block alignment). See "Host numbering within networks" for details.
Items that you must substitute are shown:
__like this__
config router vrrp vlan __new-vlan-tag__ name __network-name-as-requested-for-Maintain__ ip address __a.b.c.1/nn__ ip helper-address 129.97.15.253 ip helper-address 129.97.128.9 ip helper-address 129.97.129.9 tagged trk1 forbid trk2,trk3 ip ospf area 4 ip ospf passive vrrp vrid __new-vrid__ owner virtual-ip-address __a.b.c.1/nn__ enable exit exit write memory exit
The -cs1 switch will be the ".2" address in the new network.
config router vrrp vlan __new-vlan-tag__ name __network-name-as-requested-for-Maintain__ ip address __a.b.c.2/nn__ ip helper-address 129.97.15.253 ip helper-address 129.97.128.9 ip helper-address 129.97.129.9 tagged trk1 forbid trk3 ip ospf area 4 ip ospf passive vrrp vrid __new-vrid__ backup virtual-ip-address __a.b.c.1/nn__ enable exit exit write memory exit
In the following:
Setting up vlan 170 (Zone 4 client network, 129.97.170.170/23) on dc-csfw1:
set interface "redundant2.2" tag 170 zone Zone4 set interface "Redundant2.2" ip 129.97.170.2/23 set interface "Redundant2.2" route set interface "Redundant2.2" ip manageable set interface "redundant2.2" manage ping set interface "Redundant2.2" protocol rip set interface "Redundant2.2" protocol rip enable set interface "Redundant2.2:1" ip 129.97.170.1/23 set interface "Redundant2.2:1" route set interface "Redundant2.2:1" ip manageable set interface "redundant2.2:1" manage ping set interface "Redundant2.2:1" protocol rip set interface "Redundant2.2:1" protocol rip enable set vrouter untrust-vr access-list 2 permit ip 129.97.170.0/23 10 set vrouter trust-vr set access-list 3 set access-list 3 permit ip 129.97.170.0/23 1 set route-map name "rtmap1" permit 3 set match interface "redundant2.2:1" set match ip 3 exit exit set interface "redundant2.2:1" dhcp relay server-name "129.97.15.253" set interface "redundant2.2:1" dhcp relay service save config
Note that I chose not to use the IST DHCP relays in this case.
Checklist:
no vlan
vlan-tag ` on both of the switches in the VRRP setup
show ip route a.b.c.d
get route ip a.b.c.d
ping
the two route-points of the new network
Rough notes from Dave's email:
0.) Decide on VLan name, VLanID, and VRRP master and backup rout points.
1.) Decide where and setup routing on the master and backup
2.) Add Vlan name and routing points to Maintain (vlan entry must be via IST)
3. ) Add above to Inventory as UP devices
4.) Fix DHCP to provide service for the VLan (if it needs DHCP)
Historically, CSCF used to manage network definitions. Configuration scripts were attached to the vlan entry on VLANInformation. Since IST has taken over management of the networks, this set of definitions has become obsolete and has been deleted from the Twiki page. However, as there may be some historical utility in maintaining samples of "how we did things", a couple have been preserved. See NetworkTutorial10ConfigurationArchive.