Board logo

標題: [網際網路] 交換器設定 [打印本頁]

作者: gswdkimo    時間: 2010-7-8 09:25     標題: 交換器設定

一.起始設定

[attach]82[/attach]

為方便使用者執行管理功能,交換器上預先設定了一個虛擬區域網路 VLAN 1。
要設定 VLAN 1 中管理介面的 IP 位址,需要先進入全域設定模式。


Switch> enable

Switch# configure terminal

然後,進入 VLAN 1 的介面設定模式。

Switch(config)# interface vlan 1

為管理介面設定 IP 位址、子網路遮罩和預設閘道。該 IP 位址必須與交換器所在的區域網路相符。


Switch(config-if)# ip address 192.168.1.2 255.255.255.0
Switch(config-if)# exit
Switch(config)# ip default-gateway 192.168.1.1
Switch(config)# end

使用 copy running-configuration startup-configuration 命令儲存設定。





歡迎光臨 資訊家電班NO7 (http://imce07.freehostia.com/forums/) Powered by Discuz! 7.2