100% found this document useful (1 vote)
23 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)
23 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

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 [Link] [Link] [Link]

ip route [Link] [Link] [Link]

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 [Link] [Link] [Link]

ip route [Link] [Link] [Link]

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 [Link]

network [Link]

- EIGRP (Enhanced Interior Gateway Routing Protocol):

router eigrp <AS-number>

network <network-address> <wildcard-mask>


Example:

router eigrp 100

network [Link] [Link]

network [Link] [Link]

- OSPF (Open Shortest Path First):

router ospf <process-ID>

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

Example:

router ospf 1

network [Link] [Link] area 0

network [Link] [Link] 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 [Link]

network [Link]

- EIGRP:

router eigrp <AS-number>

network <network-address> <wildcard-mask>

Example:

router eigrp 100

network [Link] [Link]

network [Link] [Link]

- OSPF:

router ospf <process-ID>

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

Example:

router ospf 1

network [Link] [Link] area 0

network [Link] [Link] area 0

4. Exit and verify:

end

show ip protocols

show ip route

5. Save the configuration:

write memory

You might also like