Você está na página 1de 3

***********PORT SWITCH*************************

interface range fa0/11-15


switchport mode access
switchport access vlan 30
switchport port-security mac-address sticky
switchport port-security violation shutdown
switchport port-security max 2
exit
interface range fa0/16-20
switchport mode access
switchport access vlan 10
switchport port-security mac-address sticky
switchport port-security violation shutdown
switchport port-security max 2
exit
interface range fa0/21-24
switchport mode access
switchport access vlan 40
switchport port-security mac-address sticky
switchport port-security violation shutdown
switchport port-security max 2
exit
interface range fa0/6-10
switchport mode access
switchport access vlan 20
switchport port-security mac-address sticky
switchport port-security violation shutdown
switchport port-security max 2
exit
interface range fa0/1-5
switchport mode trunk
switchport trunk native vlan 1
exit
*************EtherChannel*******************
int range fa0/1-2
switchport mode trunk
channel-group 1 mode auto (LACP)
exit
interface port channel 1
switchport mode trunk
switchport native vlan
exit
command:
sh etherchannel port-channel
************Router*****************************
int fa0/0.1
encapsulation dot1q 1
ip address
exit
int fa0/0.10
encapsulation dot1q 10
ip address
exit
int fa0/0.20
encapsulation dot1q 20
ip address
exit
int fa0/0.30
encapsulation dot1q 30
ip address
exit
int fa0/0.40
encapsilation dot1q 40
ip address
exit
int fa0/0
no shutdown
exit
*********** VLan 1 dan Default-gateway*********
int vlan 1
ip address
no shut
exit
ip default-gateway

************CONSOLE DAN VTY*****************


service password-encryption
no ip domain-lookup
line console 0
password
login
logging synchronous
exit
line vty 0 4
password
login
logging synchronous
exit
*********VTP**********************************
vtp mode server
vtp domain
vtp password
vtp mode client
vtp domain
vtp password
command:
sh vtp status
*******Routing OSPF************************
router ospf 1
network 172.16.0.0 0.0.255.255 area 0
exit
interface lo0
ip add
exit
ip route 0.0.0.0 0.0.0.0 lo0
router ospf 1
default-information originate
command:
sh ip ospf neighbor
sh ip ospf int fa0/0
******Spanning-tree***********************
spanning-tree vlan 1 priority 4096 (increment)
spanning-tree vlan 10 priority
spanning-tree vlan 20 priority
spanning-tree vlan 30 priority
spanning-tree vlan 40 priority
exit
spanning-tree vlan 1 primary
spanning-tree vlan 10 primary
spanning-tree vlan 20 primary
spanning-tree vlan 30 primary
spanning-tree vlan 40 primary
exit
spanning-tree vlan 1 secondary
spanning-tree vlan 10 secondary
spanning-tree vlan 20 secondary
spanning-tree vlan 30 secondary
spanning-tree vlan 40 secondary
exit
command:
sh spanning-tree
******DHCP POOL**********************
ip dhcp pool Name
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
end
*******PORT FAST*********************
int ranfe fa0/1-5
spanning-tree portfast
exit

Você também pode gostar