0% found this document useful (0 votes)
4 views

conf r3

Uploaded by

maitafacha99
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

conf r3

Uploaded by

maitafacha99
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

Router>enable

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#no ip domain-lookup
Router(config)#hostname R3
R3(config)#enable secret class
R3(config)#line console 0
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#loggi
R3(config-line)#logging syn
R3(config-line)#logging synchronous
R3(config-line)#exit
R3(config)#line
R3(config)#line vty 0 4
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#logging synchronous
R3(config-line)#exit
R3(config)#banner motd # Acces interdit #
R3(config)#interface Serial0/0/1
R3(config-if)#ip address 192.168.23.2 255.255.255.252
R3(config-if)#no shutdown

R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up

R3(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up

R3(config-if)#exit
R3(config)#interface Lo4

R3(config-if)#
%LINK-5-CHANGED: Interface Loopback4, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback4, changed state to up

R3(config-if)#ip address 192.168.4.1 255.255.255.0


R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface Lo5

R3(config-if)#
%LINK-5-CHANGED: Interface Loopback5, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback5, changed state to up

R3(config-if)#ip address 192.168.5.1 255.255.255.0


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

R3#copy running-config startup-config


Destination filename [startup-config]?
Building configuration...
[OK]
R3#show startup-config
Using 1180 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!

R3#show ip interface brief


Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 unassigned YES unset administratively down down
GigabitEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 unassigned YES unset administratively down down
Serial0/0/1 192.168.23.2 YES manual up up
Serial0/1/0 unassigned YES unset administratively down down
Serial0/1/1 unassigned YES unset administratively down down
Loopback4 192.168.4.1 YES manual up up
Loopback5 192.168.5.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
R3#ping 192.168.23.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.23.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/13/28 ms

R3#ping 192.168.12.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R3#

R3 con0 is now available


Press RETURN to get started.

R3>en
Password:
R3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router ospf 1
R3(config-router)#router
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 192.168.4.0 0.0.0.255 area 3
R3(config-router)#network 192.168.5.0 0.0.0.255 area 3
R3(config-router)#network 192.168.23.0 0.0.0.3 area 3
R3(config-router)#
01:18:03: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial0/0/1 from LOADING to
FULL, Loading Done

R3(config-router)#pass
R3(config-router)#passive-interface Lo4
R3(config-router)#passive-interface Lo5
R3(config-router)#exit
R3(config)#exit
R3#
%SYS-5-CONFIG_I: Configured from console by console

R3#show
R3#show ip
R3#show ip pr
R3#show ip protocols

Routing Protocol is "ospf 1"


Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 3.3.3.3
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
192.168.4.0 0.0.0.255 area 3
192.168.5.0 0.0.0.255 area 3
192.168.23.0 0.0.0.3 area 3
Passive Interface(s):
Loopback4
Loopback5
Routing Information Sources:
Gateway Distance Last Update
2.2.2.2 110 00:01:26
3.3.3.3 110 00:01:26
Distance: (default is 110)

R3#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - 00:00:31 192.168.23.1 Serial0/0/1
R3#show ip ospf interface brief
Interface PID Area IP Address/Mask Cost State
Nbrs F/C
Lo4 1 3 192.168.4.1/255.255.255.0 1 WAIT
0/0
Lo5 1 3 192.168.5.1/255.255.255.0 1 WAIT
0/0
Se0/0/1 1 3 192.168.23.2/255.255.255.252 64 POINT
0/0

R3#

You might also like