AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-125704

Richard Whitman's questions

Martin Hope
Richard Whitman
Asked: 2012-06-24 13:29:41 +0800 CST

使用 Juniper EX3300 作为路由器 [重复]

  • 2
这个问题在这里已经有了答案:
10 年前关闭。

可能重复:
将 Juniper EX3300 交换机用作路由器?

所以我有一个 Juniper EX3300 交换机。它的一个上行链路端口 (ge-0/1/0) 连接到我的 ISP 的路由器。ISP路由器的端口地址是xx.xx.xx.109。我的交换机的 IP 地址是 xx.xx.xx.110。

从交换机上,我可以 ping 到 xx.xx.xx.109 和世界上任何其他 IP。我的意思是它连接到互联网。

我将计算机(运行 Ubuntu)的端口 eth0 连接到交换机的端口 ge-0/0/0(与 ge-0/1/0 在同一 VLAN 中)。我配置端口eth0如下:

iface eth0 inet static
    address yy.yy.yy.208
    netmask 255.255.255.240
    gateway xx.xx.xx.110

yy.yy.yy.208 是 ISP 分配给我的。所以,现在我可以从这台计算机 ping 到交换机 (xx.xx.xx.110)。但我无法 ping 到 xx.xx.xx.109(ISP 路由器)或任何其他 IP。

我想让这台计算机连接到 Internet。我究竟做错了什么?

以下是我的交换机上的一些配置:

interfaces {
    ge-0/0/0 {
        unit 0 {
            family ethernet-switching;
        }
    }
    .
    .
    .
    ge-0/1/0 {
        ether-options {
            no-auto-negotiation;
            link-mode full-duplex;
            speed {
                1g;
            }
        }
        unit 0 {
            family ethernet-switching {
                port-mode access;
            }
        }
    }
    .
    .
    .
    vlan {
        unit 0 {
            family inet {
                address 10.0.1.1/24;
            }
        }
        unit 1 {
            family inet {
                address xx.xx.xx.110/30;
            }
        }
    }
}
.
.
.
routing-options {
    static {
        route 0.0.0.0/0 {
            next-hop xx.xx.xx.109;
            retain;
        }
    }
}
vlans {
    Cogent {
        vlan-id 3;
        interface {
            ge-0/1/0.0;
            ge-0/0/0.0;
            ge-0/0/1.0;
            ge-0/0/2.0;
            ge-0/0/3.0;
        }
        l3-interface vlan.1;
    }
    TFLan {
        vlan-id 2;
        interface {
            ge-0/0/5.0;
            ge-0/0/6.0;
            ge-0/0/7.0;
            ge-0/0/8.0;
            ge-0/0/9.0;
            ge-0/0/10.0;
            ge-0/0/11.0;
            ge-0/0/12.0;
            ge-0/0/13.0;
            ge-0/0/14.0;
            ge-0/0/15.0;
            ge-0/0/16.0;
            ge-0/0/17.0;
            ge-0/0/18.0;
            ge-0/0/19.0;
            ge-0/0/20.0;
            ge-0/0/21.0;
            ge-0/0/22.0;
            ge-0/0/23.0;
            ge-0/0/4.0;
        }
        l3-interface vlan.0;
    }
}
routing networking vlan juniper junos
  • 1 个回答
  • 3406 Views
Martin Hope
Richard Whitman
Asked: 2012-06-23 14:59:43 +0800 CST

Juniper EX3300路由问题

  • 4

我的 Juniper EX3300 上的路由似乎不起作用。我的 ISP 网关位于 xx.xx.xx.xx。我在配置中有以下内容:

routing-options {
    static {
        route 0.0.0.0/0 {
            next-hop xx.xx.xx.xx;
            retain;
        }
    }                                   
}

我可以从交换机 ping 我的 ISP 网关。但是,我无法 ping 到任何其他 IP。当我执行跟踪路由(到 Google.com 的 IP)时。这就是我得到的:

traceroute to 74.125.224.69 (74.125.224.69), 30 hops max, 40 byte packets
traceroute: sendto: No route to host
 1 traceroute: wrote 74.125.224.69 40 chars, ret=-1
 *traceroute: sendto: No route to host

我需要启用任何协议吗?我想这不言而喻,但我对 Junos 有点陌生。

更新:这是来自的输出show interfaces terse | match inet:

bme0.32768              up    up   inet     128.0.0.1/2     
jsrv.1                  up    up   inet     128.0.0.127/2   
vlan.0                  up    up   inet     10.0.1.1/24     
vlan.1                  up    up   inet     xx.xx.xx.110/30

这是来自:的输出show route forwarding-table:

Routing table: default.inet
Internet:
Destination        Type RtRef Next hop           Type Index NhRef Netif
default            perm     0                    rjct    36     1
0.0.0.0/32         perm     0                    dscd    34     1
10.0.1.0/24        intf     0                    rslv  1321     1 vlan.0
10.0.1.0/32        dest     0 10.0.1.0           recv  1319     1 vlan.0
10.0.1.1/32        intf     0 10.0.1.1           locl  1320     2
10.0.1.1/32        dest     0 10.0.1.1           locl  1320     2
10.0.1.3/32        dest     1 0:25:90:63:26:53   ucst  1331     2 vlan.0
10.0.1.255/32      dest     0 10.0.1.255         bcst  1318     1 vlan.0
juniper junos
  • 2 个回答
  • 6119 Views
Martin Hope
Richard Whitman
Asked: 2012-06-23 09:38:36 +0800 CST

将 Juniper EX3300 交换机用作路由器?

  • 2

我在数据中心有一台 Juniper EX3300 交换机。我已将其中一个上行链路端口 (ge-0/1/0) 连接到我的 ISP 路由器。我想配置一下,让所有和ge-0/1/0在同一个VLAN的端口连接的设备都能上网。我做了一些研究,但我真的没有得到任何地方。

我已经配置界面如下:

ge-0/1/0 {
    ether-options {                 
        no-auto-negotiation;
        link-mode full-duplex;
        speed {
            1g;
        }
    }
    unit 0 {
        family inet {
            address xx.xx.xx.xx/32;
        }
    }
}

其中 xx.xx.xx.xx 是我的 ISP 分配的“客户路由器端口 IP”。

当我尝试提交时,出现以下错误:

Interface ge-0/1/0.0 not enabled for switching

有人可以告诉我配置它的正确方法是什么吗?

juniper junos
  • 1 个回答
  • 5781 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve