Lab 2 1 Subnet Design - TannerWeinacker/NET-330-01 GitHub Wiki
Subnet Design
Useful Packet Tracer Commands
- Enable: this command gives you elevated privileges when editing the switch, you will know you are in this mode when the > turns to a #
- Config terminal: This command allows you to enter configuration commands to edit interfaces, vlans, and just the settings of the swtich
Creating VLANs on a switch
- To create a VLAN on a switch you will need to be elevated to enable, once you are elevated use this command: vlan database
- vlan database: this will put you into a configuration for vlans
- To create a vlan use this command: vlan (number) name (name of vlan)
Setting Access and trunk ports on a switch
- For these commands to work you will need to select the specific port you want to change
- To do this, use the command: Interface FastEthernet0/x
- To change a port to an Access port use this command: switchport mode access
- switchport trunk encapsulation dot1q
- To change a port to a Trunk port use the command: switchport mode trunk
Configuring interfaces in "ranges"
- To configure interfaces in ranges use this command: (config)interface range FastEthernet 0/x-y
- (config-if-range)switchport access vlan x (defines the vlan for all ports in the range)
Enable Routing
- (config)ip routing (turns on routing on multilayer switches)
Setting an IP address for the Vlan
- (config)interface vlan 100 (brings you into vlan interface config mode)
- (config-if)ip address 10.25.100.1 255.255.255.0 (set the ip address of 10.25.100.1 for vlan 100 on a routing switch)
- NOTE: This only needs to be set on the router-switch acting as the gateway for the vlan