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

Syntax Router

The document describes configuring VLANs, DHCP pools, and static routes on a router. It configures subinterfaces on GigabitEthernet ports with IP addresses and encapsulation type dot1Q. It then configures multiple DHCP pools with default routers, IP ranges, and excluded addresses. It also configures static default and specific routes through an interface.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Syntax Router

The document describes configuring VLANs, DHCP pools, and static routes on a router. It configures subinterfaces on GigabitEthernet ports with IP addresses and encapsulation type dot1Q. It then configures multiple DHCP pools with default routers, IP ranges, and excluded addresses. It also configures static default and specific routes through an interface.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0.

40, changed
state to up

Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip add 192.168.10.225 255.255.255.240
Router(config-subif)#ex
Router(config)#int gig0/0.50
Router(config-subif)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0.50, changed state to up

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


state to up

Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip add 192.168.10.129 255.255.255.192
Router(config-subif)#ex
Router(config)#ip dhcp pool Kepala-PT
Router(dhcp-config)#default-router 192.168.10.241
Router(dhcp-config)#network 192.168.10.240 255.255.255.248
Router(dhcp-config)#default-router 192.168.10.241 network 192.168.10.240
255.255.255.248
^
% Invalid input detected at '^' marker.

Router(dhcp-config)#ip dhcp excluded-address 192.168.10.241


Router(config)#ip dhcp pool Pimpinan
Router(dhcp-config)#default-router 192.168.10.193
Router(dhcp-config)#network 192.168.10.192 255.255.255.224
Router(dhcp-config)#ip dhcp excluded-address 192.168.10.193
Router(config)#ip dhcp pool Adm-Pelayanan
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#network 192.168.10.0 255.255.255.128
Router(dhcp-config)#ip dhcp excluded-address 192.168.10.1
Router(config)#ip dhcp pool warehouse
Router(dhcp-config)#default-router 192.168.10.225
Router(dhcp-config)#network 192.168.10.224 255.255.255.240
Router(dhcp-config)#ip dhcp excluded-address 192.168.10.225
Router(config)#ip dhcp pool wifi-PT
Router(dhcp-config)#default-router 192.168.10.128
Router(dhcp-config)#default-router 192.168.10.129
Router(dhcp-config)#network 192.168.10.128 255.255.255.192
Router(dhcp-config)#ip dhcp excluded-address 192.168.10.129 192.168.10.130
Router(config)#end
Router#
%SYS-5-CONFIG_I: Configured from console by console

Router#wr
Building configuration...
[OK]
Router#
Router con0 is now available

Press RETURN to get started.

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router-pusat
Router-pusat(config)#
Router-pusat(config)#end
Router-pusat#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router-pusat#
%SYS-5-CONFIG_I: Configured from console by console

Router-pusat con0 is now available

Press RETURN to get started.


Router-pusat>en
Router-pusat#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router-pusat(config)#int gig0/1
Router-pusat(config-if)#ip add 40.40.40.1 255.255.255.252
Router-pusat(config-if)#n sh

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

Router-pusat(config-if)#end
Router-pusat#
%SYS-5-CONFIG_I: Configured from console by console

Router-pusat#
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state
to up

Router-pusat con0 is now available

Press RETURN to get started.

Router-pusat>en
Router-pusat#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router-pusat(config)#ip route 9.9.9.0 255.255.255.252 40.40.40.2
Router-pusat(config)#ip route 8.8.8.0 255.255.255.0 40.40.40.2
Router-pusat(config)#ip route 0.0.0.0 0.0.0.0 40.40.40.2
Router-pusat(config)#
Router-pusat con0 is now available

Press RETURN to get started.

You might also like