wvrp5.5做静态路由

拓扑图: R1(g0/0/1)-------(g0/0/1)R2  配置  g0/0/1(3.3.3.3/24)-------g0/0/1(3.3.3.4/24)

              R1(e0/0/0)-------pc1            配置   e0/0/0(2.2.2.2/24)--------pc1(2.2.2.3/24)

             R2(e0/0/0)--------pc2           配置  e0/0/0(1.1.1.1)/24--------pc2(1.1.1.2/24)

VPCS 1 >        ip   2.2.2.3     2.2.2.2    24
        PC1 : 2.2.2.3 255.255.255.0 gateway 2.2.2.2

 

r2>sy
Enter system view, return user view with Ctrl+Z.
[r2]dis cur
#
 sysname r2
#
interface Ethernet0/0/0
 ip address 1.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 ip address 3.3.3.4 255.255.255.0
#
interface NULL0
#
aaa
 authentication-scheme default
 #
 authorization-scheme default
 #
 accounting-scheme default
 #
 domain default
 #
#
 ip route-static 2.2.2.0 255.255.255.0 3.3.3.3
#
user-interface con 0                     
user-interface vty 0 4                   
user-interface vty 16 20                 
#                                        
return                          

 

 

[r1]dis cur
#
 sysname r1
#
interface Ethernet0/0/0
 ip address 2.2.2.2 255.255.255.0
#
interface GigabitEthernet0/0/1
 ip address 3.3.3.3 255.255.255.0
#
interface NULL0
#
aaa
 authentication-scheme default
 #
 authorization-scheme default
 #
 accounting-scheme default
 #
 domain default
 #
#
 ip route-static 1.1.1.0 255.255.255.0 3.3.3.4
#
user-interface con 0                     
user-interface vty 0 4                   
user-interface vty 16 20                 
#                                        
return                         

 

VPCS 1 >sh ip

NAME   IP/CIDR              GATEWAY           LPORT   RPORT
PC1    2.2.2.3/24           2.2.2.2           20000   30000
PC2    1.1.1.2/24           1.1.1.1           20001   30001
PC3    0.0.0.0/0            0.0.0.0           20009   30003
PC4    0.0.0.0/0            0.0.0.0           20003   30003
PC5    0.0.0.0/0            0.0.0.0           20004   30004
PC6    0.0.0.0/0            0.0.0.0           20005   30005
PC7    0.0.0.0/0            0.0.0.0           20006   30006
PC8    0.0.0.0/0            0.0.0.0           20007   30007
PC9    0.0.0.0/0            0.0.0.0           20008   30008

VPCS 1 >ping 2.2.2.3
2.2.2.3 icmp_seq=1 time=0.001 ms
2.2.2.3 icmp_seq=2 time=0.001 ms
2.2.2.3 icmp_seq=3 time=0.001 ms
2.2.2.3 icmp_seq=4 time=0.001 ms
2.2.2.3 icmp_seq=5 time=0.001 ms
 

VPCS 1 >ping 1.1.1.1
1.1.1.1 icmp_seq=1 time=47.000 ms
1.1.1.1 icmp_seq=2 time=63.000 ms
1.1.1.1 icmp_seq=3 time=62.000 ms
1.1.1.1 icmp_seq=4 time=47.000 ms
1.1.1.1 icmp_seq=5 time=63.000 ms
 

本文出自 “ktcatv” 博客,谢绝转载!

你可能感兴趣的:(职场,休闲,静态路由,Wvrp5.5)