nht_cntt

abc

Jun 1st, 2016
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ================================================================================================
  2.  
  3. [switch]
  4.  
  5. conf t
  6.  
  7. vlan xx
  8. name xxxxx
  9. end
  10.  
  11. conf t
  12. interface xxxx
  13. switchport mode access
  14. switchport access vlan xx
  15. end
  16.  
  17. conf t
  18. interface port router
  19. switchport mode trunk
  20. end
  21.  
  22. +++++++++++++++++++++++++++++++++++++++++
  23.  
  24. [route]
  25.  
  26. conf t
  27. interface port switch // example f0/0
  28. no shutdown
  29. interface f0/0.2
  30. encapsulation dot1q 2 // 2 là VLAN ID tương ứng VLAN 2
  31. ip add gateway
  32.  
  33. Config DHCP
  34. conf t
  35. service dhcp
  36. end
  37. conf t
  38. ip dhcp pool name
  39. network ip mask
  40. default-route
  41. ip dhcp excluded-address ip1 [ip2]
Advertisement
Add Comment
Please, Sign In to add comment