文档介绍:精选实验三-交换机、路由器配置实验
数据通信与计算机网络
实验报告
实验三 交换机、路由器配置实验
学院 计算机与电子信息学院 nfig-if)#ip address
Chicago(config-if)#int to0
Chicago(config-if)#ip address
Chicago(config-if)#int s0
Chicago(config-if)#
Chicago(config-if)#ip address
Chicago(config-if)#int e
〔二〕lab5实验内容:
交换机配置:
点击1900 switch,按下k,回车得到>,
>enable 回车,那么进入特权模式
运用show run,show versin那么可以查到相应信息
键入:
#config t
〔config〕#hostname 1900A
那么可以设置路由器名
查看ip
1900A(config)#^Z
1900A#show ip
设ip,子网掩码,ip默认网关
1900A#config t
1900A(config)#ip address
1900A(config)#ip default-gateway
查看相关信息
1900A(config)#^Z
1900A#show ip
1900A#ping
1900A#show mac-address-table
1900A#show run
1900A#delete nvram
〔三〕lab6实验内容:
路由器配置:
Router>en
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname RouterA
RouterA(config)#int e0
RouterA(config-if)#ip address
RouterA(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed state to up
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
RouterA(config-if)#int s0
RouterA(config-if)#ip address
RouterA(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to up
%LINK-3-UPDOWN: Interface Serial0, changed state to up
RouterA(config-if)#int to0
RouterA(config-if)#ip address
RouterA(config-if)#ring-speed 16
RouterA(config-if)#no shut
%LINEPROTO-5-UPDOWN: Line protocol on Interface TokenRing0, changed state to up
%LINK-3-UPDOWN: Interface TokenRing0, changed state to up
RouterA(config-if)#exit
RouterA(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
RouterA#config t
Enter configuration commands, one per line. End with CNTL/Z.
RouterA(con