en
conf t
hostname ******
ena sec ***
int gi0/0
no shut
ip add ***** #####
ip nat outside
exit
serv dhcp
ip dhcp excluded-address 192.168.1.1
ip dhcp pool AAA
lease 1
network 192.168.1.0 255.255.255.0
dns-server ******* #######
default-router 192.168.1.1
exit
ip route 0.0.0.0 0.0.0.0 ######
access-list 10 permit 192.168.1.0 0.0.0.255
ip nat inside source list 10 int gi0/0 overload
vlan 10
int vlan 10
ip add 192.168.1.1 255.255.255.0
ip nat inside
exit
int range f1/0-21
sw acc vlan 10
int range f1/22-23
switchport mode trunk
line vty 0 4
pass tsyidong
login
end
wr