首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >杜松( Juniper ex2200c )

杜松( Juniper ex2200c )
EN

Network Engineering用户
提问于 2014-06-25 09:17:03
回答 1查看 449关注 0票数 1

我有三个EX2200c开关。我希望使用其中一个作为核心交换机,另两个作为访问层交换机。我在所有交换机上创建了VLAN,将上行链路端口设置为主干模式,将所有其他端口设置为访问端口.我还在核心交换机上的所有VLAN上设置了IP地址。

我还在核心交换机上设置了DHCP,但是当计算机连接到这两个接入交换机时,我无法获得IP地址。

即使我在计算机上手动设置IP地址,也不能在同一个vlan中平主机。

那么,我错过了什么?)

EN

回答 1

Network Engineering用户

发布于 2014-06-26 03:20:58

下面是从我自己的家庭设置中提取的一个示例配置。它是配置的DHCP、VLAN和接口部分,您可以使用它作为起点

代码语言:javascript
运行
复制
system {
    services {
        dhcp {
            domain-name [put your domain];
            name-server {
                [ns1 ip];
                [ns2 ip];
            }
            pool 192.168.1.0/24 {
                address-range low 192.168.1.100 high 192.168.1.200;
                router {
                    192.168.1.1;
                }
            }
            pool 192.168.2.0/24 {
                address-range low 192.168.2.100 high 192.168.2.200;
                router {
                    192.168.2.1;
                }
            }
            pool 192.168.3.0/24 {
                address-range low 192.168.3.100 high 192.168.3.200;
                router {
                    192.168.3.1;
                }
            }
        }
    }
}
interfaces {
    ge-0/0/0 {
        description "Access Switch 1";
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ VLAN1 VLAN2 VLAN3 ];
                }
            }
        }
    }
    ge-0/0/1 {
        description "Access Switch 2";
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ VLAN1 VLAN2 VLAN3 ];
                }
            }
        }
    }
    vlan {
        unit 1 {
            family inet {
                address 192.168.1.1/24;
            }
        }
        unit 2 {
            family inet {
                address 192.168.2.1/24;
            }
        }
        unit 3 {
            family inet {
                address 192.168.3.2/24;
            }
        }
    }
}
vlans {
    VLAN1 {
        vlan-id 1;
        l3-interface vlan.1;
    }
    VLAN2 {
        vlan-id 2;
        l3-interface vlan.2;
    }
    VLAN3 {
        vlan-id 3;
        l3-interface vlan.3;
    }
}
票数 2
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/9576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档