100% found this document useful (1 vote)
15 views4 pages

Static_and_Dynamic_Routing_Commands

The document outlines the commands for configuring static and dynamic routing for both Fixed-Length Subnet Masking (FLSM) and Variable-Length Subnet Masking (VLSM). It provides step-by-step instructions for accessing privileged mode, entering global configuration mode, defining static routes, enabling dynamic routing protocols (RIP, EIGRP, OSPF), and verifying configurations. The document includes examples for each routing method and emphasizes the importance of saving the configuration.

Uploaded by

Kartik Sharma
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
100% found this document useful (1 vote)
15 views4 pages

Static_and_Dynamic_Routing_Commands

The document outlines the commands for configuring static and dynamic routing for both Fixed-Length Subnet Masking (FLSM) and Variable-Length Subnet Masking (VLSM). It provides step-by-step instructions for accessing privileged mode, entering global configuration mode, defining static routes, enabling dynamic routing protocols (RIP, EIGRP, OSPF), and verifying configurations. The document includes examples for each routing method and emphasizes the importance of saving the configuration.

Uploaded by

Kartik Sharma
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/ 4

Static and Dynamic Routing Commands for FLSM and VLSM

Static Routing Commands

For FLSM (Fixed-Length Subnet Masking):

1. Access privileged mode:

enable

2. Enter global configuration mode:

configure terminal

3. Define static routes (repeat for each destination network):

ip route <destination-network> <subnet-mask> <next-hop-IP>

Example:

ip route 192.168.1.0 255.255.255.0 192.168.2.1

ip route 192.168.2.0 255.255.255.0 192.168.3.1

4. Exit and verify:

end

show ip route

5. Save the configuration:

write memory

For VLSM (Variable-Length Subnet Masking):

1. Access privileged mode:

enable

2. Enter global configuration mode:

configure terminal

3. Define static routes (specify the subnet mask and next-hop IP for each VLSM network):

ip route <destination-network> <subnet-mask> <next-hop-IP>

Example:
ip route 192.168.1.0 255.255.255.128 192.168.2.1

ip route 192.168.1.128 255.255.255.192 192.168.3.1

4. Exit and verify:

end

show ip route

5. Save the configuration:

write memory

Dynamic Routing Commands

For FLSM (Fixed-Length Subnet Masking):

1. Access privileged mode:

enable

2. Enter global configuration mode:

configure terminal

3. Enable the dynamic routing protocol (e.g., RIP, EIGRP, OSPF):

- RIP (Routing Information Protocol):

router rip

version 2

network <network-address>

Example:

router rip

version 2

network 192.168.1.0

network 192.168.2.0

- EIGRP (Enhanced Interior Gateway Routing Protocol):

router eigrp <AS-number>

network <network-address> <wildcard-mask>


Example:

router eigrp 100

network 192.168.1.0 0.0.0.255

network 192.168.2.0 0.0.0.255

- OSPF (Open Shortest Path First):

router ospf <process-ID>

network <network-address> <wildcard-mask> area <area-ID>

Example:

router ospf 1

network 192.168.1.0 0.0.0.255 area 0

network 192.168.2.0 0.0.0.255 area 0

4. Exit and verify:

end

show ip protocols

show ip route

5. Save the configuration:

write memory

For VLSM (Variable-Length Subnet Masking):

1. Access privileged mode:

enable

2. Enter global configuration mode:

configure terminal

3. Enable the dynamic routing protocol (use protocols that support VLSM):

- RIP v2:

router rip

version 2
network <network-address>

Example:

router rip

version 2

network 192.168.1.0

network 192.168.2.0

- EIGRP:

router eigrp <AS-number>

network <network-address> <wildcard-mask>

Example:

router eigrp 100

network 192.168.1.0 0.0.0.127

network 192.168.1.128 0.0.0.63

- OSPF:

router ospf <process-ID>

network <network-address> <wildcard-mask> area <area-ID>

Example:

router ospf 1

network 192.168.1.0 0.0.0.127 area 0

network 192.168.1.128 0.0.0.63 area 0

4. Exit and verify:

end

show ip protocols

show ip route

5. Save the configuration:

write memory

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy