为交换机配置管理IP:
conf t
int f0/1
ip add 10.1.1.253 255.255.255.0
no shutdown
查看路由表
show ip route
路由条目优先顺序
C 直连路由条目(物理线路连接通常后自动生成)
S 静态路由条目 (手动添加)
S*默认路由条目(表示所以网段)
ip route 0.0.0.0 0.0.0.0 下一跳IP
路由器查看ARP缓存表
show arp
数据传输过程
直连路由条目可自动生成,非直连路由条目需要命令来配置
conf t
ip route 目标网段 掩码
路由器(交换机)开启telnet
Conf t
Line vty 0 4
password 密码
login
设置特权模式的密码
conf t
enable password 密码
telnet ip