Difference between revisions of "RIP Cisco IOS"

From Teknologisk videncenter
Jump to: navigation, search
m
m (Configuration of R4)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Ios info}} __TOC__
+
{{TOCright}}
 
=RIP example=
 
=RIP example=
[[image:RIP1.png|thumb|500px|left|Example network, with DHCP servers on each router]]
+
{|
 +
|-
 +
|[[image:RIP1.png|thumb|600px|left|Example network, with DHCP servers on each router]]
 +
|-
 +
|}
 +
[http://mars.tekkom.dk/data/IP_TECH_II/RIP1.pkt Packet tracer template]
 +
 
 +
Below is a full configuration of the shown network. The commands used to configure RIP are shown in blue.
 
==Configuration of R1==
 
==Configuration of R1==
 
<source lang=cli>
 
<source lang=cli>
Line 17: Line 24:
 
  ip address 192.168.100.1 255.255.255.0
 
  ip address 192.168.100.1 255.255.255.0
 
!
 
!
interface fastethernet 0/1
+
interface fastethernet 1/0
 
  no shut
 
  no shut
 
  ip address 10.10.0.1 255.255.255.252
 
  ip address 10.10.0.1 255.255.255.252
 
!
 
!
interface fastethernet 0/2
+
interface fastethernet 2/0
 +
no shut
 
  ip address 10.10.0.5 255.255.255.252
 
  ip address 10.10.0.5 255.255.255.252
 
!
 
!
router rip
+
<notice>router rip
 
  version 2
 
  version 2
 
  network 10.0.0.0
 
  network 10.0.0.0
  network 192.168.100.0
+
  network 192.168.100.0</notice>
 
!
 
!
 
</source>
 
</source>
Line 45: Line 53:
 
  ip address 192.168.64.1 255.255.255.0
 
  ip address 192.168.64.1 255.255.255.0
 
!
 
!
interface fastethernet 0/1
+
interface fastethernet 1/0
 
  no shut
 
  no shut
 
  ip address 10.10.0.6 255.255.255.252
 
  ip address 10.10.0.6 255.255.255.252
 
!
 
!
interface fastethernet 0/2
+
interface fastethernet 2/0
 +
no shut
 
  ip address 10.10.0.9 255.255.255.252
 
  ip address 10.10.0.9 255.255.255.252
 
!
 
!
router rip
+
<notice>router rip
 
  version 2
 
  version 2
 
  network 10.0.0.0
 
  network 10.0.0.0
  network 192.168.64.0
+
  network 192.168.64.0</notice>
 
!
 
!
 
</source>
 
</source>
Line 73: Line 82:
 
  ip address 192.168.72.1 255.255.255.0
 
  ip address 192.168.72.1 255.255.255.0
 
!
 
!
interface fastethernet 0/1
+
interface fastethernet 1/0
 
  no shut
 
  no shut
 
  ip address 10.10.0.10 255.255.255.252
 
  ip address 10.10.0.10 255.255.255.252
 
!
 
!
router rip
+
<notice>router rip
 
  version 2
 
  version 2
 
  network 10.0.0.0
 
  network 10.0.0.0
  network 192.168.64.0
+
  network 192.168.72.0</notice>
 
!
 
!
 
</source>
 
</source>
Line 92: Line 101:
 
  ip nat inside
 
  ip nat inside
 
!
 
!
interface fastethernet 0/1
+
interface fastethernet 1/0
 
  no shut
 
  no shut
 
  ip address dhcp
 
  ip address dhcp
Line 99: Line 108:
 
router rip
 
router rip
 
  version 2
 
  version 2
  default-information originate
+
  <notice>default-information originate</notice>
 
  network 10.0.0.0
 
  network 10.0.0.0
 
!
 
!
ip nat inside source list 38 interface FastEthernet0/1 overload
+
ip nat inside source list 38 interface FastEthernet1/0 overload
 
!
 
!
 
access-list 38 remark Permit traffic from RFC1918 private net
 
access-list 38 remark Permit traffic from RFC1918 private net
Line 109: Line 118:
 
access-list 38 permit 192.168.0.0 0.0.255.255
 
access-list 38 permit 192.168.0.0 0.0.255.255
 
</source>
 
</source>
 +
 +
==Often used commands==
 +
 +
*show ip route
 +
*show ip interfaces brief
 +
*show running-config
 +
*show interface fastehernet 1/0
 +
*copy running-config startup-config
 +
===On the PC's===
 +
*ipconfig
 +
*ipconfig /release
 +
*ipconfig /renew
  
 
== RIP on Cisco equipment ==
 
== RIP on Cisco equipment ==
 
RIP is implemented on Ciscos Routers and layer 3 Switches.
 
RIP is implemented on Ciscos Routers and layer 3 Switches.
 
For in-depth explanation of RIP
 
For in-depth explanation of RIP
 +
{{Source cli}}
 
[[Category:Cisco]][[Category:CCNA]][[Category:CCNP]][[Category:IOS]][[Category:Network]]
 
[[Category:Cisco]][[Category:CCNA]][[Category:CCNP]][[Category:IOS]][[Category:Network]]

Latest revision as of 13:35, 2 October 2013

RIP example

Example network, with DHCP servers on each router

Packet tracer template

Below is a full configuration of the shown network. The commands used to configure RIP are shown in blue.

Configuration of R1

hostname R1
!
ip dhcp excluded-address 192.168.100.1 192.168.100.99
ip dhcp excluded-address 192.168.100.200 192.168.100.255
!
ip dhcp pool LOCATION1
  network 192.168.100.0 255.255.255.0
  default-router 192.168.100.1
!
interface fastethernet 0/0
 no shut
 ip address 192.168.100.1 255.255.255.0
!
interface fastethernet 1/0
 no shut
 ip address 10.10.0.1 255.255.255.252
!
interface fastethernet 2/0
 no shut
 ip address 10.10.0.5 255.255.255.252
!
<notice>router rip
 version 2
 network 10.0.0.0
 network 192.168.100.0</notice>
!

Configuration of R2

hostname R2
!
ip dhcp excluded-address 192.168.64.1 192.168.64.99
ip dhcp excluded-address 192.168.64.200 192.168.64.255
!
ip dhcp pool LOCATION2
  network 192.168.64.0 255.255.255.0
  default-router 192.168.64.1
!
interface fastethernet 0/0
 no shut
 ip address 192.168.64.1 255.255.255.0
!
interface fastethernet 1/0
 no shut
 ip address 10.10.0.6 255.255.255.252
!
interface fastethernet 2/0
 no shut
 ip address 10.10.0.9 255.255.255.252
!
<notice>router rip
 version 2
 network 10.0.0.0
 network 192.168.64.0</notice>
!

Configuration of R3

hostname R3
!
ip dhcp excluded-address 192.168.72.1 192.168.72.99
ip dhcp excluded-address 192.168.72.200 192.168.72.255
!
ip dhcp pool LOCATION3
  network 192.168.72.0 255.255.255.0
  default-router 192.168.72.1
!
interface fastethernet 0/0
 no shut
 ip address 192.168.72.1 255.255.255.0
!
interface fastethernet 1/0
 no shut
 ip address 10.10.0.10 255.255.255.252
!
<notice>router rip
 version 2
 network 10.0.0.0
 network 192.168.72.0</notice>
!

Configuration of R4

hostname R4
!
interface fastethernet 0/0
 no shut
 ip address 10.10.0.2 255.255.255.252
 ip nat inside
!
interface fastethernet 1/0
 no shut
 ip address dhcp
 ip nat outside
!
router rip
 version 2
 <notice>default-information originate</notice>
 network 10.0.0.0
!
ip nat inside source list 38 interface FastEthernet1/0 overload
!
access-list 38 remark Permit traffic from RFC1918 private net
access-list 38 permit 10.0.0.0 0.255.255.255
access-list 38 permit 172.16.0.0 0.15.255.255
access-list 38 permit 192.168.0.0 0.0.255.255

Often used commands

  • show ip route
  • show ip interfaces brief
  • show running-config
  • show interface fastehernet 1/0
  • copy running-config startup-config

On the PC's

  • ipconfig
  • ipconfig /release
  • ipconfig /renew

RIP on Cisco equipment

RIP is implemented on Ciscos Routers and layer 3 Switches. For in-depth explanation of RIP