na 实验 基本静态路由

   基本静态路由


r1  f0/0:192.168.1.1--------------f0/0192.168.1.2/24  r2  192.168.2.2/24 f0/1 --------f0/192.168.2.3/24 r3

 

r1;
enable
config t
hostname H
no ip domain-lookup
ip subnet-zero


int f0/0
ip add 192.168.1.1 255.255.255.0
no shutdown
clockrate 64000
exit

ip route 192.168.2.0 255.255.255.0 f0/0

debug ip packet
ping 192.168.2.3


show ip route

 

--------------------------------------------------------------------------------------------------------------------

r2
enable
config t
hostname F
no ip domain-lookup
ip subnet-zero


int f0/0
ip add 192.168.1.2 255.255.255.0
no shutdown
clockrate 64000
exit


int f0/1
ip add 192.168.2.2 255.255.255.0
no shutdown
clockrate 64000
exit


show ip route

ping 192.168.2.3
ping 192.168.1.1

 

----------------------------------------------------------------------------------------------------------------------


r3;
enable
config t
hostname X
no ip domain-lookup
ip subnet-zero

 

int f0/1
ip add 192.168.2.3 255.255.255.0
no shutdown
clockrate 64000
exit
 

int loopback0
ip add 152.1.1.1 255.255.255.0
no shutdown
exit


int loopback1
ip add 152.1.2.1 255.255.255.0
no shutdown
exit

int loopback2
ip add 152.1.3.1 255.255.255.0
no shutdown
exit

ip route 192.168.1.0 255.255.255.0 192.168.2.2

 

debug ip packet
ping 192.168.1.1

show ip route
 

你可能感兴趣的:(职场,路由,休闲)