Selasa, 21 November 2017

vlan dan router




Switch 1
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 50
Switch(config-vlan)#hostname noviar
noviar(config)#int fa0/3
noviar(config-if)#sw
noviar(config-if)#switchport mo
noviar(config-if)#switchport mode acc
noviar(config-if)#switchport mode access 
noviar(config-if)#sw
noviar(config-if)#switchport acc
noviar(config-if)#switchport access vlan 50
noviar(config-if)#exit
noviar(config)#int fa0/2
noviar(config-if)#sw
noviar(config-if)#switchport mo
noviar(config-if)#switchport mode acc
noviar(config-if)#switchport mode access 
noviar(config-if)#sw
noviar(config-if)#switchport ac
noviar(config-if)#switchport access vlan 50
noviar(config-if)#exit
noviar(config)#exit
noviar#
%SYS-5-CONFIG_I: Configured from console by console

noviar#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
noviar(config)#vlan 60
noviar(config-vlan)#hostname ramadanti
ramadanti(config)#int fa0/5
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode acc
ramadanti(config-if)#switchport mode access 
ramadanti(config-if)#sw
ramadanti(config-if)#switchport acc
ramadanti(config-if)#switchport access vlan 60
ramadanti(config-if)#exit
ramadanti(config)#int fa0/4
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode acc
ramadanti(config-if)#switchport mode access 
ramadanti(config-if)#w
ramadanti(config-if)#sw
ramadanti(config-if)#switchport acc
ramadanti(config-if)#switchport access vlan 60
ramadanti(config-if)#exit
ramadanti(config)#




ramadanti>en
ramadanti#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ramadanti(config)#int fa0/1
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode tr
ramadanti(config-if)#switchport mode trunk 

ramadanti(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up


ramadanti#
ramadanti#
ramadanti#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
ramadanti(config)#int fa0/1
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode tr
ramadanti(config-if)#switchport mode trunk 
ramadanti(config-if)#ex
ramadanti(config)#
ramadanti#
%SYS-5-CONFIG_I: Configured from console by console

ramadanti#


switch 2

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 50
Switch(config-vlan)#hostname noviar
noviar(config)#int fa0/2
noviar(config-if)#sw
noviar(config-if)#switchport mo
noviar(config-if)#switchport mode acc
noviar(config-if)#switchport mode access 
noviar(config-if)#sw
noviar(config-if)#switchport acc
noviar(config-if)#switchport access vlan 50
noviar(config-if)#exit
noviar(config)#int fa0/3
noviar(config-if)#sw
noviar(config-if)#switchport mo
noviar(config-if)#switchport mode acc
noviar(config-if)#switchport mode access 
noviar(config-if)#sw
noviar(config-if)#switchport acc
noviar(config-if)#switchport access vlan 50
noviar(config-if)#exit
noviar(config)#exit
noviar#
%SYS-5-CONFIG_I: Configured from console by console

noviar#conf t
Enter configuration commands, one per line. End with CNTL/Z.
noviar(config)#vlan 60
noviar(config-vlan)#hostname ramadanti
ramadanti(config)#int fa0/4
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode acc
ramadanti(config-if)#switchport mode access 
ramadanti(config-if)#sw
ramadanti(config-if)#switchport acc
ramadanti(config-if)#switchport access vlan 60
ramadanti(config-if)#exit
ramadanti(config)#int fa0/5
ramadanti(config-if)#sw
ramadanti(config-if)#switchport acc
ramadanti(config-if)#switchport access vlan 60
ramadanti(config-if)#exit
ramadanti(config)#


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to up


ramadanti>en
ramadanti#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ramadanti(config)#int fa0/6
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode tr
ramadanti(config-if)#switchport mode trunk 
ramadanti(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up


ramadanti#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ramadanti(config)#int fa0/1
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode tr
ramadanti(config-if)#switchport mode trunk 

ramadanti(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

ramadanti(config)#int fa 0/6
ramadanti(config-if)#sw
ramadanti(config-if)#switchport mo
ramadanti(config-if)#switchport mode tr
ramadanti(config-if)#switchport mode trunk 
ramadanti(config-if)#ex
ramadanti(config)#






Router 1

Continue with configuration dialog? [yes/no]: n


Press RETURN to get started!



Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.20.3 255.255.255.0
Router(config-if)#no shut

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.10.6 255.255.255.252
Router(config-if)#no shut

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

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

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1
Router(config-if)#int fa 0/1.50
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.50, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.50, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip add 192.168.50.129 255.255.255.128
Router(config-subif)#exit
Router(config)#int fa0/1.60
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.60, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.60, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 60
Router(config-subif)#ip add 192.168.60.65 255.255.255.192
Router(config-subif)#exit
Router(config)#





Share:

Setting VLAN dan Router

Setting VLAN dan Router




  • switch 0


Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 30
Switch(config-vlan)#name pakeko
Switch(config-vlan)#exit
Switch(config)#vlan 40
Switch(config-vlan)#name masheru
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw
Switch(config-if)#switchport mo

Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 30
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 30
Switch(config-if)#exit
Switch(config)#int fa0/3
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 40
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 40
Switch(config-if)#exit
Switch(config)#
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa 0/5
Switch(config-if)#sw mode tr
Switch(config-if)#


  • switch 1

Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name noviar
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name epol
Switch(config-vlan)#exit
Switch(config)#int fa0/1
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/3
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 20
Switch(config-if)#exit
Switch(config)#int fa0/4
Switch(config-if)#sw mode acc
Switch(config-if)#sw acc vlan 20
Switch(config-if)#exit
Switch(config)#
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/5
Switch(config-if)#sw mo tr


  • switch 3

Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/3
Switch(config-if)#sw mo tr
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I: Configured from console by console

Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vl
% Incomplete command.
Switch(vlan)#vlan 10 name noviar
VLAN 10 added:
Name: noviar
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#vlan database
% Warning: It is recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated. Please consult user
documentation for configuring VTP/VLAN in config mode.

Switch(vlan)#vl
Switch(vlan)#vlan 20 name epol
VLAN 20 added:
Name: epol
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#




  • Router 0

Router>en
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.10.10 255.255.255.0
Router(config-if)#no shut

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.5.5 255.255.255.128
Router(config-if)#no shut

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#exit
Router(config)#int fa0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 192.168.30.35 255.255.255.240
Router(config-subif)#exit
Router(config)#int fa0/0.40
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.40, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.40, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 40

Router(config-subif)#ip add 192.168.40.49 255.255.255.240
Router(config-subif)#exit
Router(config)#

 IP ROUTE ROUTER 0

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip route 192.168.70.64 255.255.255.192 192.168.5.6
Router(config)#ip route 192.168.10.32 255.255.255.224 192.168.5.6
Router(config)#ip route 192.168.20.64 255.255.255.224 192.168.5.6
Router(config)#

Router 2

Router>en
Router>enable
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.5.6 255.255.255.128
Router(config-if)#no shut

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

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.70.65 255.255.255.192
Router(config-if)#no sh
Router(config-if)#exit
Router(config)#

%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#exit
Router(config)#int fa0/1.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.10, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.10, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.33 255.255.255.224
Router(config-subif)#exit
Router(config)#int fa0/1.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.20, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.20, changed state to up

Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.20.65 255.255.255.224
Router(config-subif)#exit
Router(config)#

IP ROUTE ROUTER 2

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ip route 192.168.10.10 255.255.255.0 192.168.5.5
%Inconsistent address and mask
Router(config)#ip route 192.168.30.32 255.255.255.240 192.168.5.5
Router(config)#ip route 192.168.40.48 255.255.255.240 192.168.5.5
Router(config)#











Share:

Popular Posts

Pages

Contact Us

Nama

Email *

Pesan *