Professional Documents
Culture Documents
Cisco VLSM Configuration Script Guide
Cisco VLSM Configuration Script Guide
In CLI:
R1> enable
Step 2 configure terminal Enters global configuration mode.
In CLI:
R1# configure terminal
Step 3 interface fastethernet/number Enters interface configuration mode
for the specified port interface
In CLI:
R1(config)# interface GigabitEthernet0/0
Step 4 ip address ip-address mask Assigns an IP address and a subnet
mask in the interface
In CLI:
R1(config-if)# ip address 193.8.8.1
255.255.255.128
Step 5 no shutdown Used in interface configuration
mode. “no shutdown” brings up the
In CLI: interface.
R1(config-if)# no shutdown
Cont. Assigning IP address into R1 Ports
In CLI:
R2> enable
Step 2 configure terminal Enters global configuration mode.
In CLI:
R2# configure terminal
Step 3 interface fastethernet/number Enters interface configuration
mode for the specified port
In CLI: interface
R2(config)# interface GigabitEthernet0/0
Step 4 ip address ip-address mask Assigns an IP address and a
subnet mask in the interface
In CLI:
R2(config-if)# ip address 193.8.8.193
255.255.255.224
Step 5 no shutdown Used in interface configuration
mode. “no shutdown” brings up the
In CLI: interface.
R2(config-if)# no shutdown
Cont. Assigning IP address into R2 Ports
In CLI:
R1> enable
Step 2 configure terminal Enters global configuration mode.
In CLI:
R1# configure terminal
Step 3 ip route prefix mask ip-address To establish static routes.
prefix – Specifies the IP route prefix for the
In CLI: destination.
R1(config)# ip route 193.8.8.192 mask – Specifies the prefix mask for the
255.255.255.240 193.8.8.242 destination
ip-address - Specifies the IP address of the
next hop that can be used to reach that
network.
Step 4 ip route prefix mask ip-address To establish static routes.
prefix – Specifies the IP route prefix for the
In CLI: destination.
R1(config)# ip route 193.8.8.224 mask – Specifies the prefix mask for the
255.255.255.240 193.8.8.242 destination
ip-address - Specifies the IP address of the
next hop that can be used to reach that
network.
Establishing static routes using IP Route command in R2
In CLI:
R2> enable
Step 2 configure terminal Enters global configuration mode.
In CLI:
R2# configure terminal
Step 3 ip route prefix mask ip-address To establish static routes.
prefix – Specifies the IP route prefix for the
In CLI: destination.
R2(config)# ip route 193.8.8.0 mask – Specifies the prefix mask for the
255.255.255.128 193.8.8.241 destination
ip-address - Specifies the IP address of the
next hop that can be used to reach that
network.
Step 4 ip route prefix mask ip-address To establish static routes.
prefix – Specifies the IP route prefix for the
In CLI: destination.
R2(config)# ip route 193.8.8.128 mask – Specifies the prefix mask for the
255.255.255.192 193.8.8.241 destination
ip-address - Specifies the IP address of the
next hop that can be used to reach that
network.
2.1.1 Assigning IP address into Router (ABR-1) Ports
Commands Function
Step 1 enable Enables privileged EXEC
mode.
In CLI:
Router> enable
Step 2 configure terminal Enters global configuration
mode.
In CLI:
Router# configure terminal
Step 3 hostname Sets the hostname to ABR-1.
In CLI:
Router(config)# hostname ASBR
Step 4 interface fastethernet/number Enters interface
configuration mode for the
In CLI: specified fast ethernet
ASBR(config)# interface Fastethernet0/0 interface.
Step 5 ip address ip-address mask Assigns an IP address and a
subnet mask.
In CLI:
ASBR(config-if)# ip address 172.16.1.1
255.255.255.0
Step 6 no shutdown Used in interface
configuration mode. “no
In CLI: shutdown” brings up the
ASBR(config-if)# no shutdown interface.
Commands Function
Step 1 enable Enables privileged EXEC
mode.
In CLI:
Router> enable
Step 2 configure terminal Enters global configuration
mode.
In CLI:
Router# configure terminal
Step 3 hostname Sets the hostname to ABR-1.
In CLI:
Router(config)# hostname ABR-1
Step 4 interface fastethernet/number Enters interface configuration
mode for the specified fast
In CLI: ethernet interface.
ABR-1(config)# interface Fastethernet0/0
Step 5 ip address ip-address mask Assigns an IP address and a
subnet mask.
In CLI:
ABR-1(config-if)# ip address 172.16.1.2
255.255.255.0
Step 6 no shutdown Used in interface configuration
mode. “no shutdown” brings
In CLI: up the interface.
ABR-1(config-if)# no shutdown
Step 7 interface fastethernet/number Enters interface configuration
mode for the specified serial
In CLI: interface.
ABR-1(config-if)# interface FastEthernet0/1
255.255.255.252
Step 9 no shutdown Enables the interface, changing its
state from administratively down to
In CLI: administratively up.
Internal(config-if)# no shutdown
Step 10 interface fastethernet/number Enters interface configuration
mode for the specified loopback
interface.
In CLI:
Internal(config-if)# interface loopback 40
Step 11 ip address ip-address mask Assigns an IP address and a
subnet mask.
In CLI:
Internal(config-if)# ip address 192.168.4.1
255.255.255.255
Step 12 no shutdown Enables the interface, changing its
state from administratively down to
In CLI: administratively up.
Internal(config-if)# no shutdown
Step 13 exit Returns to global configuration
mode.
In CLI:
Internal(config-if)# exit