CCNA OSPF network command help?

Can anyone help me understand just what to do with this command? I'm not sure if I'm meant to just use it to represent the ip of the interface or the complete subnet.

e.g

int serial 0/0 ip address 192.168.1.1 255.255.255.0 no shut . .. router ospf 1 network 192.168.1.1 0.0.0.0 or should this be network 192.168.1.0

0.0.0.255

any help appreciated, thanks in advance.

Reply to
JJ
Loading thread data ...

If you want to enable OSPF on multiple interfaces of the router with their addresses within the range 192.168.1.1/24, you should use:

network 192.168.1.1 0.0.0.255 area

If you want to enable OSPF on a specific interface, you can use:

network 192.168.1.1 0.0.0.0 area

Refer to this webpage for more details:

formatting link
KPLAB
formatting link
- Free CCNA and CCNP Study Guides

Reply to
kplab

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.