CTYPE html> OSPF and Networking Configuration

OSPF Configuration on the Router

Configure OSPF with Process ID 10

router ospf 10
router-id x.x.x.x
    

Replace x.x.x.x with the desired router ID (typically an IP address that uniquely identifies the router within the OSPF domain).

Advertise Networks

Advertise the g0/0/0 network (assuming 172.16.0.x/24):

network 172.16.0.0 0.0.0.255 area 0
network 192.168.x0.0 0.0.0.255 area 0
    

Advertise subinterfaces on g0/0/1 (VLAN subnets):

network 192.168.x1.0 0.0.0.255 area 0
network 192.168.x2.0 0.0.0.255 area 0
network 192.168.x3.0 0.0.0.255 area 0
network 192.168.x4.0 0.0.0.255 area 0
    

Replace x1, x2, x3, and x4 with the correct IP ranges for your subinterfaces.

Check OSPF

Student Router Configuration

Student Router-ID WAN LAN 1 LAN 2 LAN 3 LAN 4
Eric 1.1.1.1 172.16.1.1 192.168.11.1 192.168.12.1 192.168.13.1 192.168.14.1
Cam 2.2.2.2 172.16.1.2 192.168.21.1 192.168.22.1 192.168.23.1 192.168.24.1
Adam 3.3.3.3 172.16.1.3 192.168.31.1 192.168.32.1 192.168.33.1 192.168.34.1

Set Up Remote Access to the Router

  1. Configure SSH:
  2. ip domain name renegar.lol
    crypto key generate rsa general-keys modulus 2048
    ip ssh version 2
    line vty 0 4
    login local
            
  3. Create User Accounts:
  4. username eric privilege 15 secret P@ssword
    username cameron privilege 15 secret P@ssword
    username adam privilege 15 secret P@ssword
            
  5. Test Access:
  6. ssh -l name 172.16.0.1
    telnet 172.16.0.1
    password: P@ssword
            

Configuring VLANs and Trunking

Steps:

  1. Create VLANs
  2. Assign Ports to VLANs
  3. Set Up a Trunk Port
  4. Verify Configuration
enable
conf t
vlan 10
 name LAN1
vlan 20
 name LAN2
vlan 30
 name LAN3
vlan 40
 name LAN4

interface range g1/0/1-5
 switchport mode access
 switchport access vlan 10

interface range g1/0/6-10
 switchport mode access
 switchport access vlan 20

interface range g1/0/11-15
 switchport mode access
 switchport access vlan 30

interface range g1/0/16-20
 switchport mode access
 switchport access vlan 40

interface g1/0/24
 switchport mode trunk
 switchport trunk allowed vlan 10,20,30,40
    

Configuring DHCP Pools and Sub-interfaces

DHCP Pools:

ip dhcp pool LAN1
 network 192.168.x1.0 255.255.255.0
 default-router 192.168.x1.1
 dns-server 8.8.8.8
 domain-name renegar.lol
...