• 2

有關juniper 設備Vlan串接問題

腦中有一個問題,一直想不出來,上網查,也不知該設什麼關鍵字去google;

我有一台juniper ex4200 L3的Switch上面切vlan 50 (vlin_id :50),vlan ip :192.168.50.249,port1設定為trunk mode,設定方式如下 :
set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan50
set interfaces vlan unit 50 family inet address 192.168.50.249/24
set vlans vlan50 vlan-id 50
set vlans vlan50 interface ge-0/0/1.0
set vlans vlan50 l3-interface vlan.50


一台juniper ex2200 L2的Switch上面有切vlan 50(vlin_id :50),,vlan ip :192.168.50.250,port1設定為trunk mode,設定方式如下 :

set interfaces ge-0/0/1 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/1 unit 0 family ethernet-switching vlan members vlan50
set interfaces vlan unit 50 family inet address 192.168.50.250/24
set vlans vlan50 vlan-id 50
set vlans vlan50 interface ge-0/0/1.0
set vlans vlan50 l3-interface vlan.50


L2/L3 上,當我把L2 vlan 50 Port1 與L3 vlan 50 Port1 對接, port1 狀態Link UP,L2與L3 Vlan50狀態Link UP,

但是我從L2 ping L3 vlan ip :192.168.50.249 卻不通(從L3 ping L2 vlan ip :192.168.50.250也不通),arp table也看不到L2與L3彼此的vlan ip

這個問題讓我想好久;

可以拜託網上各位先進幫忙解答嗎 ?感恩。謝謝!!!
2020-09-05 17:00 發佈
Money-Vincent wrote:
腦中有一個問題,一直(恕刪)


把設定檔裡面的 100改成50應該就可以了
paljust wrote:
把設定檔裡面的 100(恕刪)



抱歉,我打錯了。^^

我本來就是在L2與L3設定成192.168.50.XXX的網段IP,

可是我從L2 ping L3 vlan ip :192.168.50.249 卻不通(從L3 ping L2 vlan ip :192.168.50.250也不通),

L2> ping 192.168.50.249
PING 192.168.50.249 (192.168.50.249): 56 data bytes
^C
--- 192.168.50.249 ping statistics ---
15 packets transmitted, 0 packets received, 100% packet loss
==========================================================
L3> ping 192.168.50.250
PING 192.168.50.250 (192.168.50.250): 56 data bytes
^C
--- 192.168.50.250 ping statistics ---
12 packets transmitted, 0 packets received, 100% packet loss
==========================================================


arp table也看不到L2與L3彼此的vlan ip;

juniper ex2200 L2 arp table :

L2> show arp
MAC Address Address Name Interface Flags
00:1d:aa:4a:a3:c8 192.168.50.1 192.168.50.1 me0.0 none
84:18:88:a6:c8:7f 192.168.50.2 192.168.50.2 me0.0 none
e4:54:e8:c8:c1:c0 192.168.50.16 192.168.50.16 me0.0 none
70:b5:e8:23:02:13 192.168.50.20 192.168.50.20 me0.0 none
Total entries: 4
==========================================================
Juniper ex4200 L3 arp table :
L3>> show arp
MAC Address Address Name Interface Flags
00:1d:aa:4a:a3:c8 192.168.50.1 192.168.50.1 me0.0 none
dc:38:e1:97:63:bf 192.168.50.4 192.168.50.4 me0.0 none
e4:54:e8:c8:c1:c0 192.168.50.16 192.168.50.16 me0.0 none
70:b5:e8:23:02:13 192.168.50.20 192.168.50.20 me0.0 none
Total entries: 4
==========================================================

真的蠻奇怪的........@@
請問有人可以幫回覆嗎?
謝謝歐
兩台都打
delete vlans vlan50 interface ge-0/0/1.0
commit
set interfaces vlan unit 100 family inet address
100改50
這邊100和l3-interface vlan.50的.50有關
改完commit
>show interface terse
看介面是否有up
試試看
blaablaa wrote:
兩台都打delete(恕刪)


如果下delete ,ge-0/0/1就會LINK DOWN,vlan 50 也會跟著link down

ping彼此的vlan_ip :192.168.50.249 ;vlan ip :192.168.50.250,一樣ping不通
Lkuant wrote:
show interface terse



我分別在juniper L2,L3下show interface terse 指令,結果如下 :

L2 :
vlan.50 up up inet 192.168.50.250/24

L3:
vlan.50 up up inet 192.168.50.249/24


雖然VLAN50 已經up,但是我從L2 ping L3 vlan ip :192.168.50.249 卻不通
(從L3 ping L2 vlan ip :192.168.50.250也不通),
rp table也看不到L2與L3彼此的vlan ip,

請問各位先進,知道是為什麼嗎?
Money-Vincent wrote:
我分別在juniper(恕刪)


請問L3及L2連接時 ping自己的ip是否會通呢?
可否show一下介面設定?
[edit interfaces]
# show ge-0/0/1

[edit vlans]
# show

>show ethernet-switching table
是否能看到對方mac address呢?

謝謝
Lkuant wrote:
請問L3及L2連接時 ping自己的ip是否會通呢?
可否show一下介面設定?
[edit interfaces]
# show ge-0/0/1

[edit vlans]
# show

>show ethernet-switching table
是否能看到對方mac address呢?

謝謝


我是EX2200 L2 interface ge-0/0/6 (trunk mode)連接EX4200 L3 interface ge-0/0/6 (trunk mode)

L3:

root# show ge-0/0/6 |display set
set interfaces ge-0/0/6 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/6 unit 0 family ethernet-switching vlan members vlan50
set interfaces ge-0/0/6 unit 0 family ethernet-switching native-vlan-id vlan50

root> show ethernet-switching table
Ethernet-switching table: 6 entries, 1 learned
VLAN MAC address Type Age Interfaces
default 84:18:88:a6:c8:00 Static - Router
vlan224 84:18:88:a6:c8:00 Static - Router
vlan50 * Flood - All-members
vlan50 84:18:88:a6:c8:00 Static - Router
vlan50 dc:38:e1:97:63:89 Learn 0 ge-0/0/6.0
vlan100 84:18:88:a6:c8:00 Static - Router


root> show interfaces vlan terse
Interface Admin Link Proto Local Remote
vlan up up
vlan.0 up down inet
vlan.50 up up inet 192.168.50.249/24
vlan.100 up down inet 192.168.100.249/24
vlan.224 up down inet 192.168.104.2/24


root> show route

inet.0: 7 destinations, 8 routes (7 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.50.0/24 *[Direct/0] 1d 06:14:23
> via vlan.50
[Direct/0] 1d 05:56:43
> via me0.0
192.168.50.2/32 *[Local/0] 1d 05:56:43
Local via me0.0
192.168.50.249/32 *[Local/0] 1d 06:14:23
Local via vlan.50
192.168.100.249/32 *[Local/0] 1d 06:08:20
Reject
192.168.104.2/32 *[Local/0] 1d 06:54:19
Reject
224.0.0.2/32 *[PIM/0] 1d 07:16:34
MultiRecv
224.0.0.13/32 *[PIM/0] 1d 07:16:34
MultiRecv

inet6.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

ff02::2/128 *[PIM/0] 1d 07:16:34
MultiRecv
ff02::d/128 *[PIM/0] 1d 07:16:34
MultiRecv


==================================================================================
L2:

root# show ge-0/0/6 |display set
set interfaces ge-0/0/6 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/0/6 unit 0 family ethernet-switching vlan members vlan50
set interfaces ge-0/0/6 unit 0 family ethernet-switching native-vlan-id vlan50

root> show ethernet-switching table
Ethernet-switching table: 4 entries, 1 learned, 0 persistent entries
VLAN MAC address Type Age Interfaces
default dc:38:e1:97:63:81 Static - Router
vlan50 * Flood - All-members
vlan50 84:18:88:a6:c8:06 Learn 0 ge-0/0/6.0
vlan50 dc:38:e1:97:63:81 Static - Router


root> show interfaces vlan terse
Interface Admin Link Proto Local Remote
vlan up up
vlan.0 up down inet
vlan.50 up up inet 192.168.50.250/24


root> show route

inet.0: 3 destinations, 4 routes (3 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.50.0/24 *[Direct/0] 1d 05:52:09
> via me0.0
[Direct/0] 04:37:29
> via vlan.50
192.168.50.4/32 *[Local/0] 1d 05:52:09
Local via me0.0
192.168.50.250/32 *[Local/0] 06:42:39
Local via vlan.50


L2及L3 Vlan50 ge-0/0/6 在ethernet-switching table是learn的狀態,Vlan LINK UP

L3 vlan_ip:192.168.50.249/24 ping L2 vlan ip:192.168.50.250/24 ,L2 & L3 vlan_ip彼此互ping,都是fail

不知道到底是哪個地方出了問題 ???
  • 2
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?