单臂路由配置
Continue with configuration dialog? [yes/no]: N
Press RETURN to get started!
Router>
Router>en
Router#cofn t
^
% Invalid input detected at '^' marker.
Router#econf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip rou
Router(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
Router(config)#
Router(config)#interface Serial0/0/0
Router(config-if)#ip address 202.96.128.86 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
Router(config-if)#exit
Router(config)#rou
Router(config)#router ri
Router(config)#router rip
Router(config-router)#net 202.96.128.0
Router(config-router)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Router(config-router)#!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 31/31/32 ms
Router(config-router)#
Router(config-router)#exit
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#ping
Protocol [ip]:
Target IP address: 1.1.1.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 192.168.0.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 192.168.0.1
.....
Success rate is 0 percent (0/5)
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip nat i
Router(config)#ip nat inside s
Router(config)#ip nat inside source s
Router(config)#ip nat inside source static ?
A.B.C.D Inside local IP address
tcp Transmission Control Protocol
udp User Datagram Protocol
Router(config)#ip nat inside source static 192.168.0.3 202.96.128.86
Router(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip na
Router#show ip nat t
Router#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 202.96.128.86 192.168.0.3 --- ---
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int s0/0/0
Router(config-if)#ip nat ou
Router(config-if)#ip nat outside
Router(config-if)#exit
Router(config)#int f0/0
Router(config-if)#ip nat in
Router(config-if)#ip nat inside
Router(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#show ip nat t
Router#show ip nat translations
Pro Inside global Inside local Outside local Outside global
--- 202.96.128.86 192.168.0.3 --- ---
Router#
电信路由配置
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface Serial0/0/0
Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to upno shutdown
Router(config-if)#clock rate 128000
Router(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to upip address 202.96.128.68 255.255.255.0
Router(config-if)#exit
Router(config)#int l 0
%LINK-5-CHANGED: Interface Loopback0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up
Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config-if)#exit
Router(config)#rou
Router(config)#router rip
Router(config)#router rip
Router(config-router)#net 202.96.128.0
Router(config-router)#net 1.1.1.0
Router(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
Router#deb
Router#debug ip pa
Router#debug ip packet
Packet debugging is on
本文出自 “惠州农校计算机信息协会” 博客,转载请与作者联系!