Lab5:1DNS - echadbourne/NET-330 GitHub Wiki

After completing this lab I realized what I did wrong in the last lab. I got a bit confused with configuring an physical interface as a default gateway rather than a vlan, so I think I know what went wrong there. This one worked much better once I got past that weirdness and just made sure to set up the vlans properly

Multilayer Switch

Start by enabling routing on the switch with ip routing

Add VLANs using the configuration tab:

  • 1 - Default
  • 20 - Office
  • 30 - Clinic
  • 40 - Visitor
  • 50 - Counseling

I configured all of the vlan interfaces with their appropriate gateway addresses according to my table:

  • int vlan [#]
  • ip addr [ip] [mask]

As I made each vlan they were automatically turned on. I made sure to turn on vlan 1 when I configured it, since it was off by default

Next was to configure the trunk ports. I went into each of the intended trunk port interfaces, set their encapsulation, then set their mode to trunk

  • int Fa0/1 > switchport trunk encapsulation dot1q > switchport mode trunk

Here's what it looked like

image

I then did a copy run start to save the configuration on the switch before moving on

North Core Switch

Add all the vlans: vlan [#] > name [name]

Configure the two trunk ports (refer to the above)

  • Did not need to do encapsulation, I believe that is only for routing.

I copied these steps for setting up the south core switch as well

North Edge Switch

Configure the trunk ports as seen above, then configure 6 ports for Office, 6 ports for Clinic, and 4 ports for Visitor

  • Can do this with int range: int range Fa0/4-9 > switchport access vlan 30

The south edge switch was set up the same way, and the Counseling Switch was set up with only vlan 50, the counseling vlan, using the same method

DHCP

Configure the server pools as shown:

image

I then went to the multilayer switch and set the helper address for all the vlans to that of the dhcp server

DNS

Enable DNS, add the name you want to resolve (ex ns.five.com) as the name and the ip address of the destination as shown:

image

Then in the web browser any host should be able to resolve that name to that address