Setting Cisco Switch 2960G 24TC-L
Would you like to terminate autoinstall? [yes]: Y
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]: no
Switch>ena
Switch#config t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname Switch1
Switch1(config)#enable secret xxxxx
Switch1(config)#service password-encryption
Switch1(config)#username admin password xxxxx
Switch1(config)#exit
Switch1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)#vtp mode transparent
Setting device to VTP TRANSPARENT mode.
Switch1(config)#spanning-tree mode pvst
Switch1(config)#end
Switch1#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.
Switch1(vlan)#vlan 200 name internal
VLAN 200 added:
Name: internal
Switch1(vlan)#vlan 201 name eksternal
VLAN 201 added:
Name: eksternal
Switch1(vlan)#vlan 202 name DMZ
VLAN 202 added:
Name: DMZ
Switch1(vlan)#exit
APPLY completed.
Switch1#configure t
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)#interface GigabitEthernet0/1
Switch1(config-if)# description webcore-papp
Switch1(config-if)# switchport access vlan 200
Switch1(config-if)# switchport mode access
Switch1(config-if)# no shutdown
Switch1(config-if)# spanning-tree portfast
Switch1(config-if)#!
-----------------------------------------------
Switch1(config)# interface GigabitEthernet0/21
Switch1(config-if)# description Trunk_To_BIGIP1
Switch1(config-if)# media-type r
Switch1(config-if)# switchport trunk allowed vlan 200,201,202
Switch1(config-if)# no shutdown
Switch1(config-if)# switchport mode trunk
Switch1(config-if)#!
Switch1(config)# interface GigabitEthernet0/22
Switch1(config-if)# description Access_To_Switch_Outer
Switch1(config-if)# media-type r
Switch1(config-if)# switchport access vlan 201
Switch1(config-if)# switchport mode access
Switch1(config-if)# no shutdown
Switch1(config-if)#!
Switch1(config)#interface GigabitEthernet0/23
Switch1(config-if)# description Trunk_To_Switch_Outer_CAT1
Switch1(config-if)# media-type r
Switch1(config-if)# switchport trunk allowed vlan 201,202
Switch1(config-if)# no shutdown
Switch1(config-if)# switchport mode trunk
Switch1(config-if)#!
Switch1(config)#interface GigabitEthernet0/24
Switch1(config-if)# description Trunk_To_Switch_Outer_CAT2
Switch1(config-if)# media-type r
Switch1(config-if)# switchport trunk allowed vlan 201,202
Switch1(config-if)# no shutdown
Switch1(config-if)# switchport mode trunk
Switch1(config-if)#!
Switch1(config-if)#exit
Switch1(config)#interface vlan200
Switch1(config-if)#ip address 192.168.10.1 255.255.255.0
Switch1(config-if)#no shut
Switch1(config-if)#exit
Switch1(config)#ip default-gateway 192.168.20.1
Switch1(config)#no ip http server
Switch1(config)#ntp server 192.168.20.1
Switch1(config)#line con 0
Switch1(config-line)# login local
Switch1(config-line)#line vty 0 4
Switch1(config-line)# login local
Switch1(config-line)#line vty 5 15
Switch1(config-line)# login local
Switch1(config-line)#exit
Switch1(config)#end
Thanks to Mas Hansen for helping me.