5.Telnet 远程管理以及报文构造

配置
1. CISCO
拓扑图

1.1 R1
Router>en
Router#conf terminal
Router(config)#int e0/1
Router(config-if)#ip address 10.1.11.1 255.255.255.248
Router(config-if)#no shutdown
Router(config-if)#do sh ip int bri
Router#debug ip icmp // 可以查看 ping 过来的信息
Router>en
Router#telnet 10.1.11.2 // 登录 telnet2
Trying 10.1.11.2 … Open
User Access Verification
Password:
Switch>
1.2 SW1
交换机不能配置 ip 地址。所以有一个 SVI(vlan)的名词

Switch>enable
Switch#configure terminal
Switch(config)#int vlan1
Switch(config-if)#ip address 10.1.11.2 255.255.255.248
Switch(config-if)#no shutdown
Switch>en
Switch#conf t
Switch(config)#line vty 0 // 开启 vty 的通道 0
Switch(config-line)#password 123456 // 设置密码
Switch(config-line)#transport input ?
all All protocols
none No protocols
pad X.3 PAD
telnet TCP/IP Telnet protocol
Switch(config-line)#transport input telnet // 允许通过 telnet 协议管理本设备
Switch#conf t
Switch(config)#enable password 123456 // 不开启远程登陆后无法进入特权模式
2.HUAWEI

2.1 AR1
system-view
[Huawei]sysname R1
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.1.11.1 29
[R1-GigabitEthernet0/0/1]dis th
2.2 LSW1
system-view
[Huawei]sysname SW1 // 修改名称
[SW1]int vlan 1
[SW1-Vlanif1]ip address 10.1.11.2 29 // 配置 ip 掩码,配置 LLAN 接口
[SW1-Vlanif1]ping 10.1.11.1 //ping AR1
[SW1]user-interface vty 0 4 // 开启远程 0 4 通道
[SW1-ui-vty0-4]set authentication password simple 123456 // 设置密码
save 保存 【在设备 save,在拓扑保存,退出】
quit 退出
暂时远程无法管理,没有权限

3.H3C

3.1 R1
sys
[H3C]hostname R1 // 修改主机名
[R1]interface g0/0
[R1-GigabitEthernet0/0]ip address 10.1.11.1 29
[R1]telnet server enable // 开启服务
[R1]line vty 0 4 // 允许 0-4 个人同时登陆,0 也算
[R1-line-vty0-4]set authentication password simple 123456
[R1-line-vty0-4]display this // 查看
[R1-line-vty0-4] exit
3.2 SW1
sys
[H3C]interface Vlan-interface 1
[H3C-Vlan-interface1]ip address 10.1.11.2 29
[H3C-Vlan-interface1]exit
[R1]exit
telnet 10.1.11.1
问题
HUB 工作在 OSI 的那个层次?

物理层
ip 协议栈中,TCP 的协议号是?

6
那个协议是二层协议?

PPP
原始的 SIS《中间系统到中间系统》是基于 OSI 模型的,而集成的 ISIS 协议是为了适用 TCP/IP 协议上而生的,说法是?

正确
RIP 协议是几层的?

应用层,但是为了 TCP/IP