[Huawei]ospf 1 router-id 2.2.2.2
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]quit
[Huawei-ospf-1]quit
[Huawei]
#
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
ospf enable 1 area 0.0.0.0
vrrp vrid 1 virtual-ip 12.1.1.254
#
#
interface GigabitEthernet0/0/1
ip address 23.1.1.2 255.255.255.0
ospf enable 1 area 0.0.0.0
#
AR3上的配置 AR3模拟外网,只配置ospf
[Huawei]ospf 1 router-id 3.3.3.3
[Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]quit
[Huawei-ospf-1]quit
[Huawei]
#
interface GigabitEthernet0/0/0

ip address 23.1.1.3 255.255.255.0
ospf enable 1 area 0.0.0.0
#
#
interface GigabitEthernet0/0/1
ip address 13.1.1.3 255.255.255.0
ospf enable 1 area 0.0.0.0
#
PC1上的配置
PC>ipconfig
Link local IPv6 address...........: fe80::5689:98ff:fe78:2427
IPv6 address......................: :: / 128
IPv6 gateway......................: ::
IPv4 address......................: 12.1.1.100
Subnet mask.......................: 255.255.255.0
Gateway...........................: 12.1.1.254
Physical address..................: 54-89-98-78-24-27
DNS server........................:
PC>
PC>ping 23.1.1.3
Ping 23.1.1.3: 32 data bytes, Press Ctrl_C to break
From 23.1.1.3: bytes=32 seq=1 ttl=254 time=31 ms
From 23.1.1.3: bytes=32 seq=2 ttl=254 time=47 ms
From 23.1.1.3: bytes=32 seq=3 ttl=254 time=47 ms
From 23.1.1.3: bytes=32 seq=4 ttl=254 time=31 ms
From 23.1.1.3: bytes=32 seq=5 ttl=254 time=47 ms
--- 23.1.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-59729-2.html
厂商送样产品合格说明不了什么问题
十几亿中国人民是祖国的坚强后盾