Sunteți pe pagina 1din 12

--- System Configuration Dialog ---

Router 1
Continue with configuration dialog? [yes/no]: no

Press RETURN to get started!

Router>en
Router#confi
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#inter
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#no sh

Router(config-if)#
%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)#ip add
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#interface fastEthernet 0/1
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

Router(config-if)#ip address 192.168.2.1 255.255.255.128


Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh run
Building configuration...

Current configuration : 517 bytes


!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!

hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!

interface FastEthernet0/1
ip address 192.168.2.1 255.255.255.128
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!

!
end

Router#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router#confi
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#rou
Router(config)#router ei
Router(config)#router eigrp 1
Router(config-router)#net
Router(config-router)#network 192.168.1.0 0.0.0.255
Router(config-router)#network 192.168.2.0 0.0.0.127
Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.2 (FastEthernet0/1) is up: new adjacency

Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh ip
Router#sh ip ro
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, FastEthernet0/0


192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
D

192.168.2.0/24 is a summary, 00:03:37, Null0

192.168.2.0/25 is directly connected, FastEthernet0/1

D 192.168.3.0/24 [90/30720] via 192.168.2.2, 00:01:59, FastEthernet0/1

Router 2
Router>en
Router#confi
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int
Router(config)#interface fa
Router(config)#interface fastEthernet 0/0
Router(config-if)#no sh

Router(config-if)#
%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)#ip add
Router(config-if)#ip address 192.168.2.2 255.255.255.128
Router(config-if)#interface fastEthernet 0/1
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#ip address 192.168.3.1 255.255.255.240


Router(config-if)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh run
Building configuration...

Current configuration : 519 bytes


!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router
!
!
!
!
!
!
!
!
!
!
!
!
!

!
spanning-tree mode pvst
!
!
!
!
interface FastEthernet0/0
ip address 192.168.2.2 255.255.255.128
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 192.168.3.1 255.255.255.240
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
!

!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end

Router#
Router#confi
Router#configure t
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#rou
Router(config)#router ei
Router(config)#router eigrp 1
Router(config-router)#net
Router(config-router)#network 192.168.2.0 0.0.0.127

Router(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 192.168.2.1 (FastEthernet0/0) is up: new adjacency

Router(config-router)#network 192.168.3.0 0.0.0.15


Router(config-router)#exit
Router(config)#exit
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#sh ip ruo
Router#sh ip rou
Router#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

D 192.168.1.0/24 [90/30720] via 192.168.2.1, 00:07:36, FastEthernet0/0


192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
D

192.168.2.0/24 is a summary, 00:07:00, Null0

192.168.2.0/25 is directly connected, FastEthernet0/0


192.168.3.0/24 is variably subnetted, 2 subnets, 2 masks

192.168.3.0/24 is a summary, 00:07:00, Null0

192.168.3.0/28 is directly connected, FastEthernet0/1

Router#

S-ar putea să vă placă și