Ospf Laboratorio

Laboratorio 11.6.1

Prima per ogni router configurare le interfacce di rete e poi per ogni router configurare l'ospf. Abbiamo usato tutte interfacce ethernet per evitare rogne con le seriali.

Configurazione R1 interfacce

R1#configure
Configuring from terminal, memory, or network [terminal]? 
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#interface fastEthernet 0/0
R1(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down

R1(config-if)#ip address 172.16.1.17 255.255.255.240
R1(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#exit
R1(config)#interface fastEthernet 1/0
R1(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down

R1(config-if)#ip address 192.168.10.1 255.255.255.252
R1(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up

R1(config-if)#exit
R1(config)#interface fastEthernet 0/1
R1(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

R1(config-if)#ip address 192.168.10.5 255.255.255.252
R1(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R1(config-if)#exit
R1(config)#exit

%SYS-5-CONFIG_I: Configured from console by console
R1#show ip in
R1#show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.16.1.17     YES manual up                    up

FastEthernet0/1        192.168.10.5    YES manual up                    up

FastEthernet1/0        192.168.10.1    YES manual up                    up

FastEthernet1/1        unassigned      YES unset  administratively down down

Configurazione R1 OSPF

R1>enable 
R1#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router ospf 1
R1(config-router)#network 172.16.1.16 0.0.0.15 area 0
R1(config-router)#network 192.168.10.0 0.0.0.3 area 0
R1(config-router)#network 192.168.10.4 0.0.0.3 area 0
R1(config-router)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#
00:38:43: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.9 on FastEthernet1/0 from LOADING to FULL, Loading Done

00:42:32: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.10 on FastEthernet0/1 from LOADING to FULL, Loading Done

Configurazione R2 interfacce

non l'ho salvata ma è semplice vedi quella di R3 ecco il risultato

R2>show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        10.10.10.1      YES manual up                    up

FastEthernet0/1        192.168.10.9    YES manual up                    up

FastEthernet1/0        192.168.10.2    YES manual up                    up

FastEthernet1/1        unassigned      YES unset  administratively down down

Configurazione R2 OSPF

R2>enable 
R2#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router ospf 1
R2(config-router)#network 10.10.10.0 0.0.0.255 area 0
R2(config-router)#network 192.168.10.0 0.0.0.3 area 0
R2(config-router)#network 192.168.10.0 0.0.0.3 area 0
R2(config-router)#network 10.10.10.8 0.0.0.3 area 0

R2(config-router)#network 192.168.10.8 0.0.0.3 area 0
R2(config-router)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console

R2#exit

Configurazione R3 interfacce

R3>enable
R3#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#interface fastEthernet 0/0
R3(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down

R3(config-if)#ip address 172.16.1.33 255.255.255.248
R3(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#exit 
R3(config)#interface fa
R3(config)#interface fastEthernet 1/0
R3(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to down

R3(config-if)#ip address 192.168.10.6 255.255.255.252
R3(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up

R3(config-if)#exit
R3(config)#interface fastEthernet 0/1
R3(config-if)#shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to administratively down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

R3(config-if)#ip address 192.168.10.10 255.255.255.252
R3(config-if)#no shutdown 

%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R3(config-if)#exit
R3(config)#exit
R3#
%SYS-5-CONFIG_I: Configured from console by console

R3#show ip interface brief 
Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/0        172.16.1.33     YES manual up                    up

FastEthernet0/1        192.168.10.10   YES manual up                    up

FastEthernet1/0        192.168.10.6    YES manual up                    up

FastEthernet1/1        unassigned      YES unset  administratively down down

Configurazione R3 OSPF

R3>enable 
R3#configure t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#router ospf 1
R3(config-router)#network 172.16.1.32 0.0.0.7 a
R3(config-router)#network 172.16.1.32 0.0.0.7 area 0
R3(config-router)#network 192.168.10.4 0.0.0.3 area 0
00:42:32: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.10.5 on FastEthernet1/0 from LOADING to FULL, Loading Done
R3(config-router)#network 192.168.10.8 0.0.0.3 area 0
R3(config-router)#end
Salvo diversa indicazione, il contenuto di questa pagina è sotto licenza Creative Commons Attribution-ShareAlike 3.0 License