2012年11月20日 星期二

20121121 cisco 3560-x series

設定 L3 switch 的 IP 繞送

switch(config) # interface GigabitEthernet 0/1
switch(config-if) # no switchport                                   **--重要--** 切換後才能設定 IP
switch(config-if) # ip address X.X.X.217 255.255.255.252
switch(config-if) # no sh


switch(config) # interface vlan1
switch(config-if) # ip address Y.Y.Y.30 255.255.255.224
switch(config-if) # no sh


switch(config) # interface range GigabitEthernet 0/2 - 24         --一次將 port 2~24 全部 no sh
switch(config-if) # no sh


switch(config) # ip route 0.0.0.0 0.0.0.0 X.X.X.218
switch(config) # ip route Y.Y.Y.0 255.255.255.224 Vlan1     --後面不能直接指定 VLAN 的 IP

switch(config) # ip routing                               **--重要--** 要打這行指令才會開啟 IP 繞送


switch # copy run sta

沒有留言:

張貼留言