Basic Router and Switch Configurations - Trentkerr01/CCNA-UDEMY GitHub Wiki

Basic Router and Switch Configurations

IP addresses must be configured on the interfaces in each subnet

Interface FastEthernet0/0 ip address 192.168.0.1 255.255.255.0 no shutdown ! inteface FastEthernet0/1 ip address 192.168.1.1 255.255.255.0 no shutdown

Switch Management IP address

As a Layer 2 switch is not IP routing aware.

IT does however support a single IP address for management.

IP address and subnet mask is configured on a Switched Virtual Interface (SVI) for the default VLAN1

A default gateway also needs to be configured to allow connectivity to other subnets.

Management IP Address

Switch (config)# inteface vlan 1 Switch (config-if) # ip address 192.168.0.10 255.255.255.0 Switch (config-if) # no shutdown Switch (config-if) # exit Switch (config) ip default-gateway 192.168.0.1

Hostname assignment

Switch(config) # hostname SW1 SW1 (config) #

#interface Desciptions SW1 (config) # interface FastEthernet 0/1 SW1 (config-if) # description Link to R1