我有三个EX2200c开关。我希望使用其中一个作为核心交换机,另两个作为访问层交换机。我在所有交换机上创建了VLAN,将上行链路端口设置为主干模式,将所有其他端口设置为访问端口.我还在核心交换机上的所有VLAN上设置了IP地址。
我还在核心交换机上设置了DHCP,但是当计算机连接到这两个接入交换机时,我无法获得IP地址。
即使我在计算机上手动设置IP地址,也不能在同一个vlan中平主机。
那么,我错过了什么?)
发布于 2014-06-26 03:20:58
下面是从我自己的家庭设置中提取的一个示例配置。它是配置的DHCP、VLAN和接口部分,您可以使用它作为起点
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;
}
}https://networkengineering.stackexchange.com/questions/9576
复制相似问题