作者Kagamie (Kagamie)
看板Network
标题[问答] juniper switch设定问题
时间Thu Feb 28 23:44:05 2013
各位好~
目前在设定一台juniper switch
现在遇到一个问题 此台switch可以ping的到外部的网路
但是却ping不到内部网路ex:192.168.X.X
请问这可能是哪里出现了问题
第一次设定 遇到问题蛮多的
劳烦各位耐心解答
thx!
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.64.44
1F:→ pojicoffee:问题很多可能 VLAN ACL IP Filter... 03/01 12:21
2F:→ pojicoffee:找不出来的话 就先备份config档 再一条一条贴回去找 03/01 12:22
3F:推 deadwood:几个方向找:1.switch 的VLAN 1 IP跟PC是同一段? 03/01 13:15
4F:→ deadwood:2.PC接的port是不是Vlan 1? 03/01 13:16
5F:→ deadwood:以上是以一般预设值为前提,如果对应VLAN都改了就要再找 03/01 13:19
6F:推 sssxyz:贴设定档.... 03/01 17:22
设定党如下
system{
........
........
}
chassis {
network-services enhanced-ethernet;
}
interfaces {
ge-1/0/8 {
encapsulation ethernet-vpls;
unit 0 {
family vpls;
}
}
ge-1/0/9 {
encapsulation ethernet-vpls;
unit 0 {
family vpls;
}
}
ge-1/1/8 {
encapsulation ethernet-vpls;
unit 0 {
family vpls;
}
}
ge-1/1/9 {
encapsulation ethernet-vpls;
unit 0 {
family vpls;
}
}
... ge-1/0/1~7
... ge-1/1/1~7 同上
}
forwarding-options {
sampling {
traceoptions {
file sample;
}
}
}
routing-options {
static {
route 0.0.0.0/0 next-hop 140.113.9.126;
}
}
policy-options {
prefix-list inno {
60.250.127.208/32;
60.250.127.210/32;
61.67.135.141/32;
}
prefix-list controller {
140.113.179.202/32;
<---------此台为我的controller
}
}
firewall {
filter ACL {
term 0 {
from {
source-address {
.....
140.113.179.202/32;
}
source-prefix-list {
controller;
}
}
then accept;
}
.....
....
}
routing-instances {
....
switch2 { <-------- 目前我用switch2
instance-type vpls;
interface ge-1/0/8.0;
interface ge-1/0/9.0;
interface ge-1/1/8.0;
interface ge-1/1/9.0;
}
}
openflow{
.........
switch 2 {
ports {
ge-1/0/9 unit 0;
ge-1/0/8 unit 0;
ge-1/1/9 unit 0;
ge-1/1/8 unit 0;
}
controller {
protocol tcp;
address 140.113.179.202;
port 6633;
}
}
}
目前 hostA,B ip分别为192.168.150.1与192.168.150.2
接在ge-1/0/9,8与ge-1/1/9,8某两个上, controller跑的是learning switch
结果hostA ping 不到 hostB
想请问conf要如何修改
感谢各位!!
p.s. 另外 想问一下juniper要如何重起动网路?? 在restart的地方有点找不到
ex:他牌的switch可透过ssh至192.168.1.1
以/etc/init.d/network restart 方式启动
※ 编辑: Kagamie 来自: 140.113.64.44 (03/01 19:14)
7F:推 deadwood:encapsulation的种类你确定是 ethernet-vpls? 03/01 19:57
8F:推 deadwood:GOOGLE到的范例是设定ethernet-switchiing 03/01 20:01
9F:→ deadwood:然後还要指定VLAN member,同一个VLAN的PORT才会互通 03/01 20:02
10F:→ deadwood:感觉你贴上来的设定是每个界面都layer3 port而非switch 03/01 20:03
11F:→ billboy:vpls不是用在这的喔~~ 03/07 01:52