0% found this document useful (0 votes)
21 views

Router 2

This document contains router configuration commands that configure IP addresses and subnets on multiple interfaces, sets up DHCP pools to provide IP addresses to clients on different subnets, and enables OSPF routing between the interfaces and subnets.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Router 2

This document contains router configuration commands that configure IP addresses and subnets on multiple interfaces, sets up DHCP pools to provide IP addresses to clients on different subnets, and enables OSPF routing between the interfaces and subnets.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Router>en

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0
Router(config-if)#no sh

Router(config-if)#ip add 10.10.10.2 255.255.0.0


Router(config-if)#int gig0/1
Router(config-if)#no sh

Router(config-if)#ip dhcp pool dhcp1


Router(dhcp-config)#default-router 192.168.20.1
Router(dhcp-config)#network 192.168.20.0 255.255.0.0
Router(dhcp-config)#ip dhcp excluded-address 192.168.20.1

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#intgig0/0

Router(config)#int gig0/0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state


to up

Router(config-if)#ip add 11.11.11.1 255.255.0.0


Router(config-if)#int gig0/1
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state


to up
Router(config-if)#ip add 172.100.10.1 255.255.0.0
Router(config-if)#int gig0/2
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up

Router(config-if)#ip add 12.12.12.1 255.255.0.0


Router(config-if)#ip dhcp pool dhcp2
Router(dhcp-config)#ip dhcp excluded-address 12.12.12.1
Router(config)#

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int gig0/0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state


to up

Router(config-if)#ip add 192.168.20.1 255.255.0.0


Router(config-if)#int gig0/2
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up

Router(config-if)#ip add 12.12.12.1 255.255.0.0


Router(config-if)#int gig0/1
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up

Router(config-if)#ip add 10.10.10.2 255.255.0.0


Router(config-if)#ip dhcp pool dhcp1
Router(dhcp-config)#default-router 10.10.10.1
Router(dhcp-config)#network 10.10.10.0 255.255.0.0
Router(dhcp-config)#ip dhcp excluded-address 10.10.10.1
Router(config)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state
to up
Router(config)#router ospf 10
Router(config-router)#network 192.168.20.0 0.0.255.255 area 0
Router(config-router)#network 12.12.12.0 0.0.255.255 area 0
Router(config-router)#network 10.10.10.0 0.0.255.255 area 0
Router(config-router)#

You might also like