30.112.0.0 255.255.224.0/
30.112.32.0 255.255.248.0
30.112.36.0 255.255.252.0
30.112.38.0 255.255.254.0
30.112.40.0 255.255.254.0
30.112.42.0 255.255.254.0
30.112.43.0 255.255.255.0
30.112.44.0 255.255.255.0
30.112.44.0 255.255.255.0
计算掩码:256-所需主机数
实验
R1:
conf t
int f0/0
ip add 12.1.1.1 255.255.255
no shut
ip route 0.0.0.0 0.0.0.0 23.1.1.3
ip route 0.0.0.0 0.0.0.0 12.1.1.2
username R1 privilege 15
line vty 0 4
login local
transport input telnet ssh
end
ssh -l SSH2 23.1.1.3
R2:
conf t
int f0/0
ip add 12.1.1.2 255.255.255
no shut
int f0/1
ip add 23.1.1.2 255.255.255
no shut
ip route 0.0.0.0 0.0.0.0 12.1.1.1
ip route 0.0.0.0 0.0.0.0 23.1.1.3
R3:
conf t
int f0/0
ip add 23.1.1.3 255.255.255
no shut
ip route 0.0.0.0 0.0.0.0 12.1.1.1
ip route 0.0.0.0 0.0.0.0 23.1.1.2
exit
ip domain-name cisco.com
username SSH2 privilege 15
line vty 0 4
login local
transport input ssh
ex
ip ssh vision 2
ip ssh au... 2
telnet 12.1.1.1
Wireshark抓包分析