[請教] 學藝不精,請教DELL L3 Switch 設定方式

我最早用過 Gigaway 的 L3 Switch ,後來換成 合勤的GS-2724 (正在使用),由於機器有點問題,要換成 DELL Networking N3024 的 L3 Switch

之前在設定 Gigaway 或 合勤 設定都很簡單

如下圖
1. 先創出 VLAN 10、VLAN 20、VALN 30、VALN 40、VALN 150、VLAN 200 6個 VLAN ID
2. 設定 Switch Port ,都不設Tag ex. VALN 200 Port 1~8 ,把 Normal 改成 Fixed 同時也都取消 Tx Tagging,依序做完
3. 設定 VLAN Gateway,都是各 VLAN 的 192.168.x.254 / 255.255.255.0 / VID 個網段經由 Gateway 互通
4. 設定 Default Gateway 192.168.150.1(防火牆) / Domain Name Server 192.168.150.2 (DNS)
5. 建立各 VLAN DHCP Server

5個步驟九搞定收工,準備上線

可是在 DELL N3024 上依造以前的經驗卻行不通

1. 我先連接 Console 利用精靈初始化,先依照手冊將預設 IP設定為 10.1.1.200
2. 我不會用 DELL VT100 命令設定,於是我進 GUI,先到 Switch -- VLAN --VLAN Membership 將 200、150、40、30、20、10 的 VID 都ADD
3. 再到 Switch -- VLAN -- Port Setting -- 將各個 Port VLAN Mode 改為 General ,然後分配 1~8 為 PVID 200、9~10為150、11~12為10、13~14為20、15~16為20、17~18為30、19~20為40
4. 再回到VLAN Membership 選擇 VLAN 200 將 1~8 改為 U、選擇 VLAN 150 將 9~10改為 U.....
5. 再到 Routing -- IP -- IP Interface Configuration, 新增 VLAN 200 /IP Aaddress 192.168.200.254 / Subnet Mask 255.255.255.0 /Ruting Mode Enable ,依序將 150、10、20、30、40 的 VLAN Gateway 設定起來
6. 最後到 Routing -- IP -- Configuration 將 Global Default Gateway 設定為 192.168.150.1

我用了兩台閒置電腦、一台 IP分享器 (代替 防火牆腳色)、一個對外的固定 IP 來模擬目前的作業環境。
1. 兩台電腦都接在 VLAN 200 網域,卻彼此 Ping 不到
2. 可以Ping 到 192.168.200.254 的 Gateway 但 Ping 不到 192.168.150.1 分享器,VLAN Gateway 沒有轉發過去,沒辦法轉到 Default Gateway 連上網際網路
3. 將PC2 IP 改到 VLAN 10,與 PC1 VLAN 200 還是互相 Ping 不到
4. N3024 上的 DHCP Server 也看不懂要如何設定

爬了許多文,連 Youtube 上的 官方教學影片也依造步驟設定
https://www.youtube.com/watch?v=_Z1lBm27jDM
https://www.youtube.com/watch?v=Y6Ke8IcOVFM

我是哪邊設定有問題,搞了兩天在模擬環境下都無法正常使用,或有沒有哪邊有教學文件可參考


[請教] 學藝不精,請教DELL L3 Switch 設定方式
hi 您好

1. DELL的指令跟CISCO幾乎一樣
2. 根據您的架構圖

SW部分您需要新增以下
(a) SW啟動routing , ip routing
(b) 新增vlan 10,20,30,40,150,200
(c) 新增interface Vlan (L3 vlan interface)
(d) 新增default route往FW , ip route 0.0.0.0 0.0.0.0 192.168.150.1
(e) 所有port都可以設成access mode,根據您的需求不同port access不同vlan

FW部分您需要
(a) 新增vlan 150的 security zone
(b) policy新增,存取其他zone



建議您SW設定請多利用CLI,另準備一條console線便於機器初始化



=====================
補充說明
其實您的架構可以考慮將SW單純做成L2
各vlan的GW直接設在FW上會比較容易管理
感謝說明,我再來試試看

主要就是,之前用的小品牌,很多功能都是預設 Enabled,大項目設定上去就可直接使用了 ,而 Dell 很多都是預設 Disabled,功能又開得很細,看似好像做好了,卻可能哪個選項沒開到,導致無法生效,只能再不斷爬文測試了
我不是在日本、就是在前往日本的路上,我是日本旅遊中毒者
搞了好久,一邊用 CLI 下命令,一邊觀察 GUI 變化了那些,不過還是出現問題

在模擬環境下 只接4台裝置, PC1 192.168.200.5 、PC2 192.168.200.10、PC3 192.168.150.10、分享器 LAN 192.168.150.1
同一 VLAN 間 PC1、PC2 已經可以互通,但跨 VLAN 無法互通,除了 VLAN 150 之外,其餘的都無法聯外

在 vlan之下,下 ip routing 命令,顯示 % Invalid input detected at '^' maker.

VLAN 150 有連接 分享器 (192.168.150.1) 對外,在 VLAN 150 下的裝置可以從 Default 出去了
PC3 tracert 8.8.8.8 : 192.168.150.10 -> 192.168.150.254 -> 192.168.150.1 -> ..ISP.. --> 8.8.8.8
而 PC1 瞪了一段時間才到 192.168.200.254 然後就中斷了

搞不懂是哪邊沒有設定好



CLI 命令
en
configure
vlan database
vlan 10,20,30,35,40,50,60,70,80,90,100,150,200
exit
interface vlan 10
ip address 192.168.10.254 255.255.255.0
interface vlan 20
ip address 192.168.20.254 255.255.255.0
(中間略)
interface vlan 200
ip address 192.168.200.254 255.255.255.0
interface gi1/0/1 (1~4)
switchport access vlan 200
interface gi1/0/5 (5~6)
switchport access vlan 150
(7~24埠其餘略)
exit
ip default-gateway 192.168.150.1
ip routing









madduxs wrote:
我最早用過 Gigaway...(恕刪)
我不是在日本、就是在前往日本的路上,我是日本旅遊中毒者
Hi 您好

1. 所以vlan200可以到vlan150?
2. Switch(config)#ip routing
3. PC1出不了internet是因為,你的分享器上面沒有回的route,換句話說封包有去無回
所以請在分享器下一個static route
192.168.200.0/24 next-hop 192.168.150.254

請提供完整config檔,我剛剛有照你的設定做,是working的

=====SW config=====
ip routing
!
vlan 10
!
vlan 20
!
vlan 30
!
vlan 150
!
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/4
switchport access vlan 150
switchport mode access
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
!
interface Vlan20
ip address 192.168.20.254 255.255.255.0
!
interface Vlan30
ip address 192.168.30.254 255.255.255.0
!
interface Vlan150
ip address 192.168.150.254 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.150.1


=====Router config=====
interface FastEthernet0/0 (回SW)
ip address 192.168.150.1 255.255.255.0
!
interface FastEthernet0/1 (模擬遠端)
ip address 10.10.10.254 255.255.255.0
!
ip route 192.168.10.0 255.255.255.0 192.168.150.254
ip route 192.168.20.0 255.255.255.0 192.168.150.254
ip route 192.168.30.0 255.255.255.0 192.168.150.254
我依您說明 將分享器加上路由之後,可以了,非常感謝

下面是我的設定檔,不知道有沒有甚麼問題

接下來我要設定 每一個 VLAN 的 DHCP Server 需要注意甚麼東西嗎??

------------

!Current Configuration:
!System Description "Dell Networking N3024, 6.1.1.7, Linux 3.6.5-601418a5"
!System Software Version 6.1.1.7
!
configure
boot host auto-save
vlan 10,20,30,100,150,200
exit
slot 1/0 1 ! Dell Networking N3024
stack
member 1 1 ! N3024
exit
ip routing
ip default-gateway 192.168.150.1
ip route 0.0.0.0 0.0.0.0 192.168.150.1 253
interface vlan 1
ip address 10.1.1.200 255.255.255.0
exit
interface vlan 10
ip address 192.168.10.254 255.255.255.0
exit
interface vlan 20
ip address 192.168.20.254 255.255.255.0
exit
interface vlan 30
ip address 192.168.30.254 255.255.255.0
exit
interface vlan 100
ip address 192.168.100.254 255.255.255.0
exit
interface vlan 150
ip address 192.168.150.254 255.255.255.0
exit
interface vlan 200
ip address 192.168.200.254 255.255.255.0
exit
username "admin" password ********************** privilege 15 encrypted
!
interface Gi1/0/1
switchport access vlan 200
exit
!
interface Gi1/0/2
switchport access vlan 200
exit
!
interface Gi1/0/3
switchport access vlan 200
exit
!
interface Gi1/0/4
switchport access vlan 200
exit
!
interface Gi1/0/5
switchport access vlan 150
exit
!
interface Gi1/0/6
switchport access vlan 150
exit
!
interface Gi1/0/7
switchport access vlan 100
exit
!
interface Gi1/0/8
switchport access vlan 100
exit
!
interface Gi1/0/9
switchport access vlan 10
exit
!
interface Gi1/0/10
switchport access vlan 10
exit
!
interface Gi1/0/11
switchport access vlan 20
exit
!
interface Gi1/0/12
switchport access vlan 20
exit
!
interface Gi1/0/13
switchport access vlan 30
exit
!
interface Gi1/0/14
switchport access vlan 30
exit
!

snmp-server engineid local 800002a203f8b15673cbc6
snmp-server community "public" rw ipaddress 10.1.2.100
exit
我不是在日本、就是在前往日本的路上,我是日本旅遊中毒者
Hi 您好

1. config看起來沒有什麼問題
2. DHCP 沒什麼要注意的,針對每個vlan設各自的pool即可

ip dhcp pool v10
network 192.168.10.0 255.255.255.0
default-router 192.168.10.254
dns-server 8.8.8.8

3. 您的config中有系統預設的snmp comminuity,若您的環境中沒有監控機制,可以考慮拿掉

4. 根據您的第一張示意圖,這台SW日後會接在FW後面,一要要新增static route (避免封包有去無回)

ex: on FW 192.168.10.0/24 next-hop 192.168.150.254

明白了,非常感謝你的協助

我再來好好學學 CLI 命令
我不是在日本、就是在前往日本的路上,我是日本旅遊中毒者
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!