0% found this document useful (0 votes)
3 views3 pages

R1 and R4 Router Configuration Guide

The document contains configuration details for routers R1 and R4. For R1, it configures IP and IPv6 addresses on various interfaces, sets the hostname and enable secret, configures OSPF routing for both IP and IPv6, and sets up NAT translation. For R4, it similarly configures interfaces, OSPF, and NAT, and also sets up a DHCP pool to assign IP addresses to clients on its LAN interface.

Uploaded by

Cesar Aparicio
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

R1 and R4 Router Configuration Guide

The document contains configuration details for routers R1 and R4. For R1, it configures IP and IPv6 addresses on various interfaces, sets the hostname and enable secret, configures OSPF routing for both IP and IPv6, and sets up NAT translation. For R4, it similarly configures interfaces, OSPF, and NAT, and also sets up a DHCP pool to assign IP addresses to clients on its LAN interface.

Uploaded by

Cesar Aparicio
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

TUTORIAL CISCO

R1 CONFIGURATION
------------------------------------
Router>en
Router#conf t
Router(config)#hostname R1
R1(config)#banner motd 'Warn'
R1(config)#enable secret cisco
R1(config)#int g0/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#ipv6 add 2001:DB8:A:10::1/64
R1(config-if)#ipv6 address fe80::1 link-local
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/0/1
R1(config-if)#ip add [Link] [Link]
R1(config-if)#ipv6 add 2001:db8:b:1::1/64
R1(config-if)#ipv6 add fe80::1 link-local
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/1/0
R1(config-if)#ip add [Link] [Link]
R1(config-if)#ipv6 add 2001:db8:b:2::1/64
R1(config-if)#ipv6 add fe80::1 link-local
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#access-list 1 permit 10.0
R1(config)#access-list 1 permit [Link] [Link]
R1(config)#ip nat pool R1 [Link] [Link] netmask
[Link]
R1(config)#ip nat inside source list 1 pool R1 overload
R1(config)#ip nat inside source static tcp [Link] 80 [Link]
80
R1(config)#ip nat inside source static tcp [Link] 443
[Link] 443
R1(config)#int g0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#int s0/0/0
R1(config-if)#ip nat outside
R1(config-if)#exit
R1(config)#int s0/0/1
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#int s0/1/0
R1(config-if)#ip nat inside
R1(config-if)#exit
R1(config)#ip route [Link] [Link] [Link]
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 route ::/0 s0/0/0
R1(config)#router ospf 1
R1(config-router)#passive-int g0/0
R1(config-router)#default-info origin
R1(config-router)#network [Link] [Link] area 0
R1(config-router)#network [Link] [Link] area 0
R1(config-router)#network [Link] [Link] area 0
R1(config-router)#exit
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id [Link]
R1(config-rtr)#passive-int g0/0
R1(config-rtr)#default-info origin
R1(config-rtr)#exit
R1(config)#int s0/0/1
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#int s0/1/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#int s0/1/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#int g0/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit
R1(config)#

R4 CONFIGURATION
----------------------------------
Router(config)#int g0/0
Router(config-if)#ip add [Link] [Link]
Router(config-if)#ipv6 add 2001:db8:a:4::1/64
Router(config-if)#ipv6 add fe80::4 link-local
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#int s0/0/1
Router(config-if)#ip add [Link] [Link]
Router(config-if)#ipv6 add 2001:db8:a:103::2/64
Router(config-if)#ipv6 add fe80::4 link-local
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#banner motd 'Warn'
Router(config)#hostname R4
R4(config)#enable secret cisco
R4(config)#crypto key generate rsa
% You already have RSA keys defined named R4.R4 .
% Do you really want to replace them? [yes/no]: yes
How many bits in the modulus [512]: 2048
R4(config)#line vty 0 15
R4(config-line)#
R4(config-line)#transport input ssh
R4(config-line)#login local
R4(config-line)#exit
R4(config)#ip dhcp excluded-address [Link]
R4(config)#ip dhcp pool R4
R4(dhcp-config)#network [Link] [Link]
R4(dhcp-config)#default-router [Link]
R4(dhcp-config)#dns-server [Link]
R4(dhcp-config)#exit
R4(dhcp-config)#exit
R4(config)#access-list 1 permit [Link] [Link]
R4(config)#ip nat inside source list 1 interface s0/0/1
R4(config)#int s0/0/1
R4(config-if)#ip nat outside
R4(config-if)#exit
R4(config)#int g0/0
R4(config-if)#ip nat inside
R4(config-if)#ip route [Link] [Link] s0/0/1
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 route ::/0 s0/0/1

You might also like