Would you like to enter the initial configuration dialog? [yes/no]: no # 选择no
Press RETURN to get started!
r1>enable # 进入admin模式 r1# r1#configure terminal # 进入管理终端 Enter configuration commands, one per line. End with CNTL/Z. r1(config)#interface FastEthernet1/0 # 进入端口1/0 r1(config-if)#ip address 192.168.1.1 255.255.255.0 # 配置端口的ip地址 r1(config-if)#no shutdown # 开启此端口,使它转发数据 %LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
r1(config-if)#exit # 退出
r1(config)#interface serial 2/0 # 进入S2/0端口模式 r1(config-if)#no shutdown # 开启此端口
%LINK-5-CHANGED: Interface Serial2/0, changed state to down r1(config-if)#ip address 192.168.2.1 255.255.255.0 # 配置此端口的ip地址 r1(config-if)#clock rate 9600 # 配置此端口的时钟速率 r1(config-if)#exit # 退出
Would you like to enter the initial configuration dialog? [yes/no]: no # 选择no
Press RETURN to get started!
r1>enable # 进入admin模式 r1# r1#configure terminal # 进入管理终端 Enter configuration commands, one per line. End with CNTL/Z. r1(config)#interface FastEthernet1/0 # 进入端口1/0 r1(config-if)#ip address 192.168.3.1 255.255.255.0 # 配置端口的ip地址 r1(config-if)#no shutdown # 开启此端口,使它转发数据 %LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
r1(config-if)#exit # 退出
r1(config)#interface serial 2/0 # 进入S2/0端口模式 r1(config-if)#no shutdown # 开启此端口
%LINK-5-CHANGED: Interface Serial2/0, changed state to down r1(config-if)#ip address 192.168.2.2 255.255.255.0 # 配置此端口的ip地址 r1(config-if)#exit # 退出