OSPF
faisal79
Member Posts: 47 ■■□□□□□□□□
in CCNA & CCENT
guys can first thank you for the help
secondly my question is i setup network on Boson NetSim
two routers connected and each has LAN pc connected to it all using same subnet of 192.168.10.0 255.255.255.192
i want practice ospf so
1- you know when you enable ospf and set the id no, the network ip address you have to set does it have to be in the same subnet with the rest of the network.
i was thinking its as same as RIP and use the ip address of the routers interfaces?
please someone explain this
thanks
secondly my question is i setup network on Boson NetSim
two routers connected and each has LAN pc connected to it all using same subnet of 192.168.10.0 255.255.255.192
i want practice ospf so
1- you know when you enable ospf and set the id no, the network ip address you have to set does it have to be in the same subnet with the rest of the network.
i was thinking its as same as RIP and use the ip address of the routers interfaces?
please someone explain this
thanks
Comments
-
ignign0kt Member Posts: 42 ■■□□□□□□□□After you enter the OSPF process number, and get into the router OSPF config more, you specify which networks you want to advertise and which area it's in.
So.. I believe you would do something like..
network 192.168.10.0 0.0.0.255 area 0
So it advertises all 192.168.10.x interfaces on the router.
At least I think this is right, someone correct me if I'm wrong. -
faisal79 Member Posts: 47 ■■□□□□□□□□[img]C:\Documents and Settings\M!K£\My Documents\My Pictures\WANsetup 1- how do you paste picture here? 2-if the subnet is 255.255.255.192 will the wild mask be 0.255.255.255[/img][/quote][/list][/url]
-
Webmaster Admin Posts: 10,292 AdminThat's correct, and in addition to advertising, it also receives OSPF updates on those interfaces. So you basically enable OSPF on the interfaces that match the network address and wildcard (also referred to as 'inverse mask') you specified in the network command.
-
ignign0kt Member Posts: 42 ■■□□□□□□□□When configuring OSPF, you use a wildcard mask and not the subnet mask. But you can convert the subnet mask to a wildcard mask by subtracting the subnet mask from 255.255.255.255
So it would be:
255.255.255.255
- 255.255.255.192
0.0.0.63
..would be the resulting wildcard mask to use when configuring the OSPF network -
faisal79 Member Posts: 47 ■■□□□□□□□□guys i have configured the ospf in the configuration Terminal but when i run show ip ospf interface it comes up saying serial0 is up, line protocol is up
OSPF not enabled on this interface
do i need to go into the interface and configure ospf again?
i have treid going into going in to the interface and running command router ospf 1 again but it didn't change anything
please help
i need this to work b4 i go for the test -
Ciscopimpenator Inactive Imported Users Posts: 134Make sure the interface ip address overlaps with the network command.
What I mean is this....
router ospf 1
network 10.0.0.0 0.255.255.255
If your interface is on the 10.x.x.x network you should be ok. If your interface is on a different network you need to issue another network command to include that interface.
What is your interface ip address?
What networks did you advertise?
-Ciscopimpenator-Ciscopimpenator -
faisal79 Member Posts: 47 ■■□□□□□□□□my network address is 192.168.10.0 255.255.255.192
s0 is using subnet 128 ip is 192.168.10.129 ........................>s1 on the other routeris on the same subnet is is using 130
and advatising 192.168.10.0 0.0.0.63 area 0
im right to advatise this network on both routers ? -
MrfixitRight Member Posts: 61 ■■□□□□□□□□faisal79 wrote:guys i have configured the ospf in the configuration Terminal but when i run show ip ospf interface it comes up saying serial0 is up, line protocol is up
OSPF not enabled on this interface
do i need to go into the interface and configure ospf again?
i have treid going into going in to the interface and running command router ospf 1 again but it didn't change anything
please help
i need this to work b4 i go for the test
Router#config t
Router(config)#router ospf 1
Router(config-router)#network xxx.xxx.xxx.xxx 0.0.0.255 area 0
Router(config-router)#network xxx.xxx.xxx.xxx 0.0.0.255 area 0
Router(config-router)#exit
Is this how you configured your ospf? Did you do it on both routers? On the 2nd router it would be ospf 2 and then the networks you want to advertise. Check your routing table, are the routes in there? (sh ip route) Did you set a clock rate on int s0? (clock rate 64000) Just want to clarify. -
faisal79 Member Posts: 47 ■■□□□□□□□□yes i have setup the clock and configere as you said there both routers
my wan connection up and running already ppp -
Ciscopimpenator Inactive Imported Users Posts: 134First off, your addressing scheme needs to be fixed because that's the problem.
Why don't you change the Serial interfaces to use a /26 mask(255.255.255.192). This will match the network you are advertising. Now there will be 4 networks with 64 hosts. The Seriall interfaces will lie in the 3rd network(128-191).
This should work with the network command you advertised.
This will advertise your network address of 192.168.10.0 255.255.255.192
and it will advertise the serial interfaces which will use the same subnet mask.
Right now your serial interface and network address masks aren't working together.
Give it a try!-Ciscopimpenator -
faisal79 Member Posts: 47 ■■□□□□□□□□that is what my Serail connection is using now as i said if look my previews post
s0
>connceted to s1 using 192.168.10.128 subnet 255.255.255.192
which is /26 -
MrfixitRight Member Posts: 61 ■■□□□□□□□□faisal79 wrote:yes i have setup the clock and configere as you said there both routers
my wan connection up and running already ppp
Got me stumped! : Can you ping your router from the host? Or vice versa? -
MrfixitRight Member Posts: 61 ■■□□□□□□□□faisal79 wrote:yes i can ping my router from the pc and vise verse
: : : : : : This is a stumper!
You have the interface configured, ip addressing set, clock rate, etc. Yet when you configure ospf it doesn't stick.??? -
faisal79 Member Posts: 47 ■■□□□□□□□□saying serial0 is up, line protocol is up
OSPF not enabled on this interface -
Ciscopimpenator Inactive Imported Users Posts: 134Your advertising the wrong network.
You need to advertise
192.168.10.128 0.0.0.63 area 0
so use the network command
network 192.168.10.128 0.0.0.63
Everything should be fine.
I was confused because I thought you were advertising an internal network along with serial interfaces.
That would be groovy!-Ciscopimpenator -
MrfixitRight Member Posts: 61 ■■□□□□□□□□faisal79 wrote:that is what my Serail connection is using now as i said if look my previews post
s0
>connceted to s1 using 192.168.10.128 subnet 255.255.255.192
which is /26
Can you ping the other router? -
faisal79 Member Posts: 47 ■■□□□□□□□□Show running-config
Gateway of last resort is not set
access-expression B
192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
arp Se
C 192.168.10.64/26 is directly connected, Ethernet0r area
backup
C 192.168.10.130/32 is directly connected, Serial0 N2 - OSPF NSSA external type 2
bandwidth
C 192.168.10.128/26 is directly connected, Serial0OSPF external type 1, E2 - OSPF external ty
bridge-gro
RouterA#sho int s0nt bridging interf
Serial0 is up, line protocol is up i - IS-IS, L1 - IS-IS level-1,
Hardware is HD64570 CDP interfac
Internet address is 192.168.10.129/26
Reserved Conversations 0/0 (allocated/max allocated)ion Unit (MTU)
% Type "sho
5 minute input rate 0 bits/sec, 0 packets/sec Use a defined NETBIOS access list or enable
5 minute output rate 0 bits/sec, 0 packets/secp
H
ntp
5602 packets input, 203407 bytes, 0 no buffer.82d
priority-group Assign a prior
Received 5602 broadcasts, 0 runts, 0 giants, 0 throttles
shutdown Shutdown the s
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
snapshot Configure snapshot support on the interf
5587 packets output, 204863 bytes, 0 underruns
snmp Modify SNMP
0 output errors, 0 collisions, 4 interface resets
transmit-interface Assign a tra
0 output buffer failures, 0 output buffers swapped out
Last clearing of "show
18 carrier
%LIN
!!!!!ANGED
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
24 packets input, 4579 bytes, 0 no buffer
Route
RouterA#ping 192.168.10.66
R
RouterB#4 bro
Type escape sequence to abort.from console by consoleconfig
Sending 5, 100-byte ICMP Echos to 192.168.10.66, timeout is 2 seconds:iguration commands, one per line. End with CNTL/Z.
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/3/4 msed
RouterB#
%SYS-5-CONFIG_I: Configured from console by con
RouterA#ping 192.168.10.93 underruns
Type escape sequence to abort.
0 output error
Loopback
Sending 5, 100-byte ICMP Echos to 192.168.10.9
^
MT
% Invalid input detected at '^' marker.of "show interface" counters never
RouterA#show ip ospf intercafe
Output queue 0
^5, 0 drops keepalive set (1
% Invalid input detected at '^' marker.5 minute input rate 0 bits/sec, 0 packe
RouterA#show ip ospf interface
La
5 minu
Ethernet0 is up, line protocol is upsecever
OSPF not enabled on this interface0 bytes, 0 no bufferrface" cou
Reserved C
Internet Address 192.168.10.9/29, Area 0fers swapped out
Process ID 1, Router ID 192.168.10.129, Network Type POINT_TO_POINT, Cost: 64uting Process "ospf 1" with ID 192.168.12.1put rate 0 bits/sec, 0 packets/sec
Transmit Delay is 1 sec, State DOWN,S0) routes 637 packets input, 23091
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5cseceived 637 broadcasts, 0 runts, 0 giants, 0 throttles
Numb
RouterA#as in th
RouterA#sho ip routemal 0 stub 0 inpu
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2Interval is never and due in nevererA#show ip route
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPand due in 0:17:31
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultper line. End with CNTL/Z.
N
U - per-user static route, o - ODRSSA external type 2
RouterB(
Gateway of last resort is not seterB#config t
E1 - OSP
%SYS
192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
Building configuration...fig t
Ent
Current configuration:s, one per line. End
!t
version 11.2Ethernet0
service password-encryption
RouterB(c
no service udp-small-serversdirectly connected,
RouterB
no service tcp-small-servers68.10.0 0.0.0.63 area 0
C
!
hostname RouterA8/26 is directly
!o
enable secret 5 $1$hojD$b9GKV/fryiAHvD99kdJKU0
RouterB#erA#
%SYS-5-
enable password 7 141411050Dsole by console
Password:
!
username RouterB password 7 13061E010803rB#show ip ospf 1
RouterB#sho in
!o
interface Ethernet01" with ID 192.168.
ip address 192.168.10
service password-encryption Area BACKBONE(0)
no service udp-small-serversinterfaces in this area is 0
no service tcp-small-serversepalive set (10 s
Ar
!
hostname RouterAtion
!
enable secret 5 $1$hojD$b9GKV/fryiAHvD99kdJKU0ted 1 times
enable password 7 141411050D:02, output hang neve
!L
username RouterB password 7 13061E010803e in never clearing of "show interface"
!u
interface Ethernet0
Lin
ip address 192.168.10.65 255.255.255.192 0:19:44s; input queue 0/75, 0 drops
!
interface Ethernet1
RouterB#sho
no ip addressrute input rat
shutdownec, 0
Rou
!r
interface Serial0rface
ip address 192.168.10
shutdownadministr
!i
router ospf 1e protocol is
network 192.168.10.0 0.0.0.63 area 0h dribble condition de
OSPF not en
!l
no ip classlessface
!
line con 0 312 packe
password 7 0307580507protocol is up
login
line aux 0
OSPF
password 7 0307580507terface0 collisions, 1
loginace re
line vty 0 4terB#
password 7 00071A150754
Enter configur
loginommand
!
endper
RouterA#d with C
RouterA# buffers
RouterA#sho running-config
Ro
Building configuration...#sho int s0
RouterB(
Current configuration:ratively down, line pr
!o
version 11.2ete command.
service password-encryptio
User Access Ve
enable password 7 141411050D
Password:
Enca
Pa
!w
username RouterB password 7 13061E010803rd: sec)
Password:
RouterA#
!n
interface Ethernet0
Enter configurati
ip address 192.168.10.65 255.255.255.192Z.
Last input never, output neve
!
interface Ethernet1RouterA(config)#int
shutdown
!
router ospf 1
network 192.168.10.0 0.0.0.63 area 0
!
no ip classless
!
line con 0
password 7 0307580507
login
line aux 0
password 7 0307580507
login
line vty 0 4
password 7 00071A150754
login
!
end
RouterA#
RouterA#
RouterA# -
Ciscopimpenator Inactive Imported Users Posts: 134FAisal...
Just advertise the network 192.168.10.128 0.0.0.63
Everything should work fine!-Ciscopimpenator -
faisal79 Member Posts: 47 ■■□□□□□□□□quick question does it matter if the other has no computer conneted to it
what i mean is have one pc and two routers the router are conneced back to back and one of the routers e0 is connected to my pc
pc...........>router1...................router2...............no pc
pc can ping router1&2 routers 1,2 can ping pc -
MrfixitRight Member Posts: 61 ■■□□□□□□□□
-
faisal79 Member Posts: 47 ■■□□□□□□□□on my routers have 2 serail interface each im using s0 on one and s1 on the other and the other two are shutdown
but i checked both int im using up becouse my ppp is working on them -
Ciscopimpenator Inactive Imported Users Posts: 134As long as you have crossover cables you are golden.
Router to router needs crossover ethernet cables.
PC to router you need crossover ethernet cables.
You need to know this for CCNA exam.
Did you get OSPF working?-Ciscopimpenator -
MrfixitRight Member Posts: 61 ■■□□□□□□□□faisal79 wrote:on my routers have 2 serail interface each im using s0 on one and s1 on the other and the other two are shutdown
but i checked both int im using up becouse my ppp is working on them
So which interface on which router are you trying to configure OSPF?interface Serial0rface
ip address 192.168.10
shutdownadministr
!i
router ospf 1e protocol is
network 192.168.10.0 0.0.0.63 area 0h dribble condition de
OSPF not en -
faisal79 Member Posts: 47 ■■□□□□□□□□the config i pasted is the for the router using s0,
no its not working yet
i will try again 2morrow
i knew the cable side of it just was confirming