HCIA.OSPF实验

R1  sysname r1
#
 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
#
dhcp enable
#
undo dhcp server bootp
#
ip pool 1
 gateway-list 192.168.1.1 
 network 192.168.1.0 mask 255.255.255.0 
 static-bind ip-address 192.168.1.11 mac-address 5489-98a3-2997 
 static-bind ip-address 192.168.1.22 mac-address 5489-9800-0b85 
 dns-list 8.8.8.8 
#
ip pool 2
 gateway-list 172.16.2.1 
 network 172.16.2.0 mask 255.255.255.0 
 static-bind ip-address 172.16.2.11 mac-address 5489-9085-2ab4 
 static-bind ip-address 172.16.2.22 mac-address 5489-988e-2db0 
 dns-list 8.8.8.8 
#
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 192.168.1.1 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 172.16.2.1 255.255.255.0 
 ospf timer hello 5
 dhcp select global
#
interface GigabitEthernet0/0/2
 ip address 12.1.1.1 255.255.255.0 
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 1.1.1.1 
 area 0.0.0.1 
  authentication-mode simple cipher %$%$J0e}>00ZM>hb!e6HT+yIC7M3%$%$ 
  network 1.1.1.1 0.0.0.0 
  network 12.1.1.0 0.0.0.255 
  network 172.16.2.0 0.0.0.255 
  network 192.168.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

R2 sysname r2
#
 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 Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
 ip address 12.1.1.2 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 23.1.1.1 255.255.255.0 
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 2.2.2.2 
 area 0.0.0.1 
  authentication-mode simple cipher %$%$z#o}PWNKf=358'O!}]oBC7,8%$%$ 
  network 2.2.2.2 0.0.0.0 
  network 12.1.1.0 0.0.0.255 
  network 23.1.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

R3 sysname r3
#
 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 Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
 ip address 23.1.1.2 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 123.1.1.1 255.255.255.0 
 ospf dr-priority 0
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 3.3.3.3 
 area 0.0.0.0 
  network 123.1.1.0 0.0.0.255 
 area 0.0.0.1 
  authentication-mode simple cipher %$%$PMZ*OW=N!Gmb7cQBGbQ+C7YG%$%$ 
  network 3.3.3.3 0.0.0.0 
  network 23.1.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

R4 sysname r4
#
 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 Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
 ip address 123.1.1.2 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 45.1.1.1 255.255.255.0 
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 4.4.4.4 
 area 0.0.0.0 
  network 4.4.4.4 0.0.0.0 
  network 123.1.1.0 0.0.0.255 
 area 0.0.0.2 
  authentication-mode md5
  network 45.1.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

R5 sysname r5
#
 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 45.1.1.2 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 123.1.1.3 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/2
 ip address 56.1.1.1 255.255.255.0 
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 5.5.5.5 
 area 0.0.0.0 
  network 5.5.5.5 0.0.0.0 
  network 123.1.1.0 0.0.0.255 
 area 0.0.0.2 
  authentication-mode md5
  network 45.1.1.0 0.0.0.255 
  network 56.1.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20

R6 sysname r6
#
 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 Ethernet0/0/0
#
interface Ethernet0/0/1
#
interface Ethernet0/0/2
#
interface Ethernet0/0/3
#
interface Ethernet0/0/4
#
interface Ethernet0/0/5
#
interface Ethernet0/0/6
#
interface Ethernet0/0/7
#
interface GigabitEthernet0/0/0
 ip address 123.1.1.4 255.255.255.0 
 ospf timer hello 5
#
interface GigabitEthernet0/0/1
 ip address 56.1.1.2 255.255.255.0 
 ospf timer hello 5
#
interface NULL0
#
ospf 100 router-id 6.6.6.6 
 area 0.0.0.0 
  network 6.6.6.6 0.0.0.0 
  network 123.1.1.0 0.0.0.255 
 area 0.0.0.2 
  authentication-mode md5
  network 56.1.1.0 0.0.0.255 
#
user-interface con 0
 authentication-mode password
 idle-timeout 0 0
user-interface vty 0 4
user-interface vty 16 20
PC1>ping 56.1.1.1

Ping 56.1.1.1: 32 data bytes, Press Ctrl_C to break
From 56.1.1.1: bytes=32 seq=1 ttl=252 time=78 ms
From 56.1.1.1: bytes=32 seq=2 ttl=252 time=78 ms
From 56.1.1.1: bytes=32 seq=3 ttl=252 time=78 ms
From 56.1.1.1: bytes=32 seq=4 ttl=252 time=63 ms
From 56.1.1.1: bytes=32 seq=5 ttl=252 time=94 ms

--- 56.1.1.1 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 63/78/94 ms
PC3>ipconfig

Link local IPv6 address...........: fe80::5689:98ff:fe8e:2db0
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 172.16.2.22
Subnet mask.......................: 255.255.255.0
Gateway...........................: 172.16.2.1
Physical address..................: 54-89-98-8E-2D-B0
DNS server........................: 8.8.8.8

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值