0% found this document useful (0 votes)
8 views6 pages

What Is GRE

The document outlines the configuration of multiple routers (R1, R2, R3, R4, R10, R20) including setting hostnames, interfaces, IP addresses, OSPF and EIGRP routing protocols, and NAT settings. Access control lists (ACLs) are defined to restrict certain IP ranges, and GRE tunnels are established between R10 and R20. Additionally, static routes are configured for network connectivity between the routers.

Uploaded by

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

What Is GRE

The document outlines the configuration of multiple routers (R1, R2, R3, R4, R10, R20) including setting hostnames, interfaces, IP addresses, OSPF and EIGRP routing protocols, and NAT settings. Access control lists (ACLs) are defined to restrict certain IP ranges, and GRE tunnels are established between R10 and R20. Additionally, static routes are configured for network connectivity between the routers.

Uploaded by

Aman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

R1

Router(config)#hostname R1
R1(config)#interface ethernet 0/0
R1(config-if)#no shutdown
R1(config-if)#ip address 31.10.1.1 255.255.255.252
R1(config-if)#ip ospf 100 area 0

R1(config)#interface ethernet 0/1


R1(config-if)#no shutdown
R1(config-if)#ip address 192.168.12.1 255.255.255.0
R1(config-if)#ip ospf 100 area 0
R1(config)#router ospf 100
R1(config-router)#router-id 1.1.1.1
R1(config-router)#passive-interface ethernet 0/0
R2

Router(config)#hostname R2
R2(config)#interface ethernet 0/1
R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.12.2 255.255.255.0
R2(config-if)#ip ospf 100 area 0

R2(config)#interface ethernet 0/0


R2(config-if)#no shutdown
R2(config-if)#ip address 192.168.23.2 255.255.255.0
R2(config-if)#ip ospf 100 area 0
R2(config)#router ospf 100
R2(config-router)#router-id 2.2.2.2
R3

Router(config)#hostname R3
R3(config)#interface ethernet 0/1
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.24.3 255.255.255.0
R3(config-if)#ip ospf 100 area 0
R3(config)#interface ethernet 0/0
R3(config-if)#no shutdown
R3(config-if)#ip address 192.168.23.3 255.255.255.0
R3(config-if)#ip ospf 100 area 0

R3(config)#router ospf 100


R3(config-router)#router-id 3.3.3.3
R4

Router(config)#hostname R4
R4(config)#interface ethernet 0/0
R4(config-if)#no shutdown
R4(config-if)#ip address 79.4.20.1 255.255.255.252
R4(config-if)#ip ospf 100 area 0

R4(config)#interface ethernet 0/1


R4(config-if)#no shutdown
R4(config-if)#ip address 192.168.24.4 255.255.255.0
R4(config-if)#ip ospf 100 area 0

R4(config)#router ospf 100


R4(config-router)#router-id 4.4.4.4
R4(config-router)#passive-interface ethernet 0/0
R10

Router(config)#hostname R10
R10(config)#interface ethernet 0/0
R10(config-if)#no shutdown
R10(config-if)#ip address 31.10.1.2 255.255.255.252

R10(config)#interface ethernet 0/2


R10(config-if)#no shutdown
R10(config-if)#ip address 172.16.10.1 255.255.255.0
R20

Router(config)#hostname R20
R20(config)#interface ethernet 0/0
R20(config-if)#no shutdown
R20(config-if)#ip address 79.4.20.2 255.255.255.252

R20(config)#interface ethernet 0/2


R20(config-if)#no shutdown
R20(config-if)#ip address 172.16.20.1 255.255.255.0

R4(config)#ip access-list standard Customer


R4(config-std-nacl)#deny 10.0.0.0 0.0.0.255
R4(config-std-nacl)#deny 172.16.0.0 0.0.15.255
R4(config-std-nacl)#deny 192.168.0.0 0.0.255.255
R4(config-std-nacl)#permit any
R4(config)#interface ethernet 0/0
R4(config-if)#ip access-group Customer in

R1(config)#ip access-list standard Customer


R1(config-std-nacl)#deny 10.0.0.0 0.0.0.255
R1(config-std-nacl)#deny 172.16.0.0 0.0.15.255
R1(config-std-nacl)#deny 192.168.0.0 0.0.255.255
R1(config-std-nacl)#permit any
R1(config)#interface ethernet 0/0
R1(config-if)#ip access-group Customer in

NAT Configuration:
R10(config)#interface ethernet 0/0
R10(config-if)#ip nat outside
R10(config)#interface ethernet 0/2
R10(config-if)#ip nat inside
R10(config)#ip access-list standard NAT
R10(config-std-nacl)#permit 172.16.10.0 0.0.0.255
R10(config-std-nacl)#permit 172.16.20.0 0.0.0.255
R10(config)#ip nat inside source list NAT interface ethernet 0/0 overload

R10(config)#interface ethernet 0/0


R10(config-if)#ip nat outside
R10(config)#interface ethernet 0/2
R10(config-if)#ip nat inside
R10(config)#ip access-list standard NAT
R10(config-std-nacl)#permit 172.16.10.0 0.0.0.255
R10(config-std-nacl)#permit 172.16.20.0 0.0.0.255
R10(config)#ip nat inside source list NAT interface ethernet 0/0 overload

R20(config)#ip route 0.0.0.0 0.0.0.0 79.4.20.1


R10(config)#ip route 0.0.0.0 0.0.0.0 31.10.1.1

GRE Tunnel Configuration:


R10(config)#interface tunnel 10
R10(config-if)#tunnel source 31.10.1.2
R10(config-if)#tunnel destination 79.4.20.2
R10(config-if)#ip address 10.10.20.10 255.255.255.0

R20(config)#interface tunnel 20
R20(config-if)#tunnel source ethernet 0/0
R20(config-if)#tunnel destination 31.10.1.2
R20(config-if)#ip address 10.10.20.20 255.255.255.0
R10(config)#router eigrp 50
R10(config-router)#eigrp router-id 10.10.10.10
R10(config-router)#network 10.10.20.0 0.0.0.255
R10(config-router)#network 172.16.10.0 0.0.0.255

R20(config)#router eigrp 50
R20(config-router)#eigrp router-id 20.20.20.20
R20(config-router)#network 10.10.20.0 0.0.0.255
R20(config-router)#network 172.16.20.0 0.0.0.255

You might also like