1、网络拓扑图

OSPF_ci

2、核心配置

1)配置ospf 进程

ospf 100 router-id 1.1.1.1

2)接口配置ospf

int g0/0/0

ospf enable 100 area 0

3、详细配置

AR1:

[AR1]display current-configuration  

[V200R003C00]

#

sysname AR1

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.1.1 255.255.255.0  

ospf enable 100 area 0.0.0.0

#

interface GigabitEthernet0/0/1

ip address 192.168.1.1 255.255.255.0  

ospf enable 100 area 0.0.0.0

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

ospf 100 router-id 1.1.1.1  

area 0.0.0.0  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[AR1]

AR2:

[AR2]display current-configuration  

[V200R003C00]

#

sysname AR2

#

snmp-agent local-engineid 800007DB03000000000000

snmp-agent  

#

clock timezone China-Standard-Time minus 08:00:00

#

portal local-server load portalpage.zip

#

drop illegal-mac alarm

#

set cpu-usage threshold 80 restore 75

#

aaa  

authentication-scheme default

authorization-scheme default

accounting-scheme default

domain default  

domain default_admin  

local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$

local-user admin service-type http

#

firewall zone Local

priority 15

#

interface GigabitEthernet0/0/0

ip address 10.1.1.2 255.255.255.0  

ospf enable 100 area 0.0.0.0

#

interface GigabitEthernet0/0/1

ip address 192.168.2.1 255.255.255.0  

ospf enable 100 area 0.0.0.0

#

interface GigabitEthernet0/0/2

#

interface NULL0

#

ospf 100 router-id 2.2.2.2  

area 0.0.0.0  

#

user-interface con 0

authentication-mode password

idle-timeout 0 0

user-interface vty 0 4

user-interface vty 16 20

#

wlan ac

#

return

[AR2]