笔记本电脑可以获取 DHCP 地址,但插入同一个交换机端口时其他设备不能

网络工程 局域网 dhcp 杜松
2022-02-12 21:24:44

我目前有 1x Juniper ex3300 和 1x HP ProCurve 2848 构成我网络的核心,vlan 1、10、20 和 30 在它们之间的端口 46-47 上进行中继。ex3300 充当所有 VLAN 和它们与 Internet 之间的路由的 DHCP 服务器。

在大多数情况下,无线接入点(机场快线/极速)直接连接到这些交换机中的每一个,但在某些情况下,Mikrotik RB260gs 通过中继链路连接,它们之间具有相同的 VLAN。

直接连接的 AP 运行良好,交换机端口可以放置在任何 VLAN 中并保持连接。插入笔记本电脑后,RB260gs 正常运行(提供与 VLAN 相关的 DHCP 地址,完全连接)。但是,当我将任何其他设备插入同一端口时,该设备没有收到 DHCP 地址并且没有连接

到目前为止,我已经使用 Onkyo AV 接收器、Airport Extreme、Airport Express 对此进行了测试,所有这些都没有获取 DHCP 地址。两台 Windows 机器确实选择了 DHCP(其中一台只安装了干净的 Windows)。

我这里什么都没有。有人伸出援手吗?

[更新] - 配置 Mikrotik VLAN 配置

惠普配置

hostname "MUST-CSW2-HP2848"
mirror-port 39
interface 6
   name "Captains_Cabin_Express"
exit
interface 11
   name "VIP_AP"
exit
interface 20
   name "ASW1-Master"
exit
ip default-gateway 172.20.11.254
snmp-server community "public" Unrestricted
vlan 1
   name "DEFAULT_VLAN"
   ip address dhcp-bootp
   tagged 10
   no untagged 1-9,11-48
   exit
vlan 10
   name "Ship"
   untagged 1-19,21-38,40-44
   ip address 172.20.11.253 255.255.254.0
   tagged 20,45-48
   exit
vlan 20
   name "Crestron"
   ip address 172.20.20.253 255.255.255.0
   tagged 20,45-48
   exit
vlan 30
   name "Guest"
   untagged 39
   ip address 172.20.30.253 255.255.255.0
   tagged 20,45-48
   exit
vlan 99
   name "Management"
   exit
interface 20
   monitor
   exit
spanning-tree

瞻博网络配置

****************output omitted**********************

        dhcp {
            traceoptions {
                file dhcp_logfile;
                level all;
                flag all;
            }
            pool 172.20.10.0/23 {
                address-range low 172.20.10.50 high 172.20.11.149;
                name-server {
                    8.8.8.8;
                    8.8.4.4;
                }
                router {
                    172.20.11.254;
                }
            }
            pool 172.20.30.0/24 {
                address-range low 172.20.30.25 high 172.20.30.225;
                name-server {
                    8.8.8.8;
                    8.8.4.4;
                }
                router {
                    172.20.30.254;
                }
            }
            pool 172.20.20.0/24 {
                address-range low 172.20.20.50 high 172.20.20.225;
                name-server {
                    8.8.8.8;
                    8.8.4.4;
                }
                router {
                    172.20.20.254;
                }
            }
        }
    }

****************output omitted*************************

    ge-0/0/44 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
            }
        }
    }
    ge-0/0/45 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ Ship Guest Crestron-Control ];
            }
        }
    }
    ge-0/0/46 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ Ship Guest Crestron-Control ];
            }
        }
    }
    ge-0/0/47 {
        unit 0 {
            family ethernet-switching {
                port-mode trunk;
                vlan {
                    members [ Ship Guest Crestron-Control ];
                }
            }
        }

**************output omitted******************

    vlan {
        unit 0 {
            family inet;
        }
        unit 1 {
            family inet;
        }
        unit 10 {
            family inet {
                address 172.20.11.254/23;
            }
        }
        unit 20 {
            family inet {
                address 172.20.20.254/24;
            }
        }
        unit 30 {
            family inet {
                address 172.20.30.254/24;
            }
        }
        unit 100 {
            family inet {
                address 172.20.100.14/28;
            }
        }
    }
}

***************output omitted******************

routing-options {
    static {
        route 0.0.0.0/0 next-hop 172.20.100.1;
    }
}
protocols {
    igmp-snooping {
        vlan all;
    }
    rstp {
        bridge-priority 0;
    }
    lldp {
        interface all;
    }
    lldp-med {
        interface all;
    }
}
ethernet-switching-options {
    storm-control {
        interface all;
    }
}
vlans {
    Crestron-Control {
        description "Crestron Network Resources";
        vlan-id 20;
        interface {
            ge-0/0/47.0;
            ge-0/0/44.0;
            ge-0/0/45.0;
            ge-0/0/46.0;
        }
        l3-interface vlan.20;
    }
    Guest {
        description "Guest Network Resources and User Devices";
        vlan-id 30;
        interface {
            ge-0/0/47.0;
            ge-0/0/46.0;
            ge-0/0/45.0;
            ge-0/0/44.0;
            ge-0/0/10.0;
        }
        l3-interface vlan.30;
    }
    Internet_Connection {
        description "Connection to Peplink30 via Bridge_MAIN";
        vlan-id 100;
        interface {
            ge-0/0/0.0;
        }
        l3-interface vlan.100;
    }
    Management {
        vlan-id 99;
        l3-interface vlan.0;
    }
    Ship {
        description "Hardware and Crew";
        vlan-id 10;
        interface {
            ge-0/0/47.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/29.0;
            ge-0/0/44.0;
            ge-0/0/45.0;
            ge-0/0/46.0;
        }
        l3-interface vlan.10;
    }
    default {
        vlan-id 1;
        interface {
            ge-0/0/47.0;
        }
        l3-interface vlan.1;
    }
}
poe {
    interface all;
}
1个回答

如果网络是通过您的 HP 路由的(由于与它们的 DHCP 服务器在同一个 VLAN 中没有第 2 层连接),则您需要添加一个 IP 帮助程序以允许 DHCP 广播到达它们各自的 DHCP 服务器。

对你来说,接口配置可能看起来像这样:

vlan 30
   name "Guest"
   untagged 39
   ip address 172.20.30.253 255.255.255.0
   ip helper-address x.x.x.x (IP Address of DHCP Server)
   tagged 20,45-48
exit