Вы находитесь на странице: 1из 4

boot-start-marker

boot-end-marker
!
enable secret 5 $1$UoTq$mnSFkotgqHmpHvyV1wx7E1
!
no aaa new-model
!
resource policy
!
ip subnet-zero
!
!
ip cef
!
!
no ip domain lookup
!
!
!
!
interface FastEthernet0/0
ip address 172.16.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/2/0
ip address 172.16.2.2 255.255.255.0
no fair-queue
!
interface Serial0/2/1
--More-*May 29 00:48:29.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
ip address 192.168.1.2 255.255.255.0
clock rate 125000
!
ip classless
!
ip http server
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
password cisco
logging synchronous
login
line aux 0
line vty 0 4
exec-timeout 0 0
password cisco
logging synchronous
login

!
R2#deb
*May 29 00:48:59.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2#deb
R2#debug ip rou
R2#debug ip routing
IP routing debugging is on
R2#con
R2#conf
R2#configure ter
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#i
*May 29 00:49:29.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2(config)#inte
R2(config)#interface se
R2(config)#interface serial 0/2/0
R2(config-if)#ip ad
R2(config-if)#ip address
*May 29 00:49:59.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2(config-if)#ip address 172.16.2.2 255.255.255.0
R2(config-if)#no shu
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
R2(config)#
R2(config)#exit
R2#
*May 29 00:50:29.139: %SYS-5-CONFIG_I: Configured from console by console
R2#configure terminal
*May 29 00:50:29.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2#debug ip routing
IP routing debugging is on
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#exit
R2#configure terminal
*May 29 00:50:52.031: %SYS-5-CONFIG_I: Configured from console by console
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip address 172.16.2.2 255.255.255.0
*May 29 00:50:59.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2(config)#interface serial 0/2/1
R2(config-if)#ip address 192.16.2.2 255.255.255.0
*May 29 00:51:29.647: is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
R2(config-if)#ip address 192.168.1.2 255.255.255.0
*May 29 00:51:41.879: %LINK-3-UPDOWN: Interface Serial0/2/1, changed state to up
R2(config-if)#ip address 192.168.1.2 255.255.255.0
*May 29 00:51:41.879: is_up: 1 state: 4 sub state: 1 line: 0 has_route: False
*May 29 00:51:41.879: RT: SET_LAST_RDB for 192.168.1.0/24
NEW rdb: is directly connected
*May 29 00:51:41.879: RT: add 192.168.1.0/24 via 0.0.0.0, connected metric [0/0]
*May 29 00:51:41.879: RT: NET-RED 192.168.1.0/24
*May 29 00:51:41.879: RT: interface Serial0/2/1 added to routing table
*May 29 00:51:41.879: is_up: 1 state: 4 sub state: 1 line: 0 has_route: True
*May 29 00:51:42.879: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/
1, changed state to up
*May 29 00:51:42.879: is_up: 1 state: 4 sub state: 1 line: 0 has_route: True

R2(config-if)#ip address 192.168.1.2 255.255.255.0


R2(config-if)#no shu
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#
R2(config)#exit
R2#
R2#
R2#
*May 29 00:52:00.139: %SYS-5-CONFIG_I: Configured from console by console
R2#show
R2#show ip in
R2#show ip interface br
R2#show ip interface brief
Interface
IP-Address
OK? Method Status
ocol
FastEthernet0/0
172.16.1.1
YES manual up
FastEthernet0/1
unassigned
YES unset administratively down
Serial0/2/0
172.16.2.2
YES manual up
Serial0/2/1
192.168.1.2
YES manual up
R2#
R2#
R2#
R2#
R2#conf
R2#configure ter
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip ro
R2(config)#ip rou
R2(config)#ip rout
R2(config)#ip route 192.168.2.0 255.255.255.0 s0/2/1
R2(config)#
R2(config)#
R2(config)#
*May 29 00:54:14.095: RT: SET_LAST_RDB for 192.168.2.0/24
NEW rdb: is directly connected

Prot
up
down
up
up

*May 29 00:54:14.095: RT: add 192.168.2.0/24 via 0.0.0.0, static metric [1/0]
*May 29 00:54:14.095: RT: NET-RED 192.168.2.0/24
R2(config)#ip route 172.16.3.0 255.255.255.0 s0/2/0
R2(config)#
*May 29 00:54:57.055: RT: SET_LAST_RDB for 172.16.3.0/24
NEW rdb: is directly connected
*May 29 00:54:57.055: RT: add 172.16.3.0/24 via 0.0.0.0, static metric [1/0]
*May 29 00:54:57.055: RT: NET-RED 172.16.3.0/24
R2(config)#
R2(config)#
R2(config)#exit
R2#pi
*May 29 00:55:31.695: %SYS-5-CONFIG_I: Configured from console by console
R2#pin
R2#ping 192.168.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms
R2#ping 172.16.3.10

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 172.16.3.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#
R2#
R2#
R2#
R2#ping 172.16.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#
R2#
R2#iconf
R2#conf
R2#configure ter
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 172.16.3.0 255.255.255.0 s0/2/0
R2(config)#
R2(config)#
R2(config)#exit
R2#pi
*May 29 01:00:48.187: %SYS-5-CONFIG_I: Configured from console by console
R2#ping 172.16.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.10, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R2#ping 192.168.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/15/16 ms
R2#
R2#
R2#
R2#
R2#

Вам также может понравиться