无线论坛 门户 UBNT优倍快知识库 EdgeMax 查看内容

EdgeMAX - 如何配置一个 EdgeRouter 作为交换机使用

2017-7-22 16:17| 查看: 6867| 评论: 0

简介读者将学习到如何配置 ER-X/ERX-SFP/EdgePoint R6 作为交换机使用采用固件版本 1.8.5 支持VLAN Untag 和 Tag工具ER-X、ERX-SFP 或 EdgePoint R6操作步骤连接设备恢复路由器到工厂出厂状态,然后将电脑连接到路由 ...
分享到: 更多

简介


读者将学习到如何配置 ER-X/ERX-SFP/EdgePoint R6 作为交换机使用
采用固件版本 1.8.5 支持VLAN Untag 和 Tag

工具


ER-X、ERX-SFP 或 EdgePoint R6

操作步骤


  1. 连接设备
    1. 恢复路由器到工厂出厂状态,然后将电脑连接到路由器的 eth0 口,同时配置电脑网卡地址为 192.168.1.X/24
    2. 打开 Chrome 浏览器访问 https://192.168.1.1,使用默认的设备管理员帐号 ubnt 和密码 ubnt 登入 EdgeOS
  2. 配置 switch0 接口和IP地址
    1. 在 Dashboard 界面选中 switch0 接口依次点击 Actions > Configure 进行配置
    2. 按图示配置 IP 地址为 192.168.2.1
    3. 按图示配置 eth1-eth4 加入到 switch0 接口
  3. 连接到 switch0
    1. 将电脑网卡地址重新配置为192.168.2.X/24,并连接到 eth1-eth4 的任意一个接口上
    2. 打开 Chrome 浏览器访问 https://192.168.2.1,使用默认的设备管理员帐号 ubnt 和密码 ubnt 登入 EdgeOS
  4. 移除 eth0 的 IP 地址
  5. 添加 eth0 到 switch0
  6. 启用 vlan 功能
    1. 按 vlan 需求配置 pvid 和 vid,具体操作可参考 http://bbs.ubnt.com.cn/forum.php?mod=viewthread&tid=16145&extra=page%3D1
    2. 图例配置 eth0 作为 trunk 配置 vlan1 和 vlan9-11,eth1 配置 untag vlan9,eth2 配置 untag vlan10,eth3 配置 untag vlan11
  7. 使用 CLI 命令配置 EdgeRouter 作为交换机使用
    1. 访问 EdgeRouter 的 CLI,配置 switch0 接口和 IP 地址
    configure
    set interfaces switch switch0 switch-port interface eth1
    set interfaces switch switch0 switch-port interface eth2
    set interfaces switch switch0 switch-port interface eth3
    set interfaces switch switch0 switch-port interface eth4
    set interfaces switch switch0 switch-port interface eth5
    Set interfaces switch switch0 address 192.168.2.1/24
    commit 
    save
    exit
    1. 连接 switch0 并访问 CLI,移除 eth0 的 IP 地址并将 eth0 加入到 switch0
    		configure
    delete interfaces ethernet eth0 address
    commit
    set interfaces switch switch0 switch-port interface eth0
    commit
    save
    exit
    	
    1. 开启 VLAN 功能,配置 eth0 作为 trunk 配置 vlan1和vlan9-11,eth1 配置 untag vlan9,eth2 配置untag vlan10,eth3 配置untag vlan11
    configure
    set interfaces switch switch0 switch-port vlan-aware enable
    set interfaces switch switch0 switch-port interface eth0 vlan pvid 1
    set interfaces switch switch0 switch-port interface eth0 vlan vid 9
    set interfaces switch switch0 switch-port interface eth0 vlan vid 10
    set interfaces switch switch0 switch-port interface eth0 vlan vid 11
    set interfaces switch switch0 switch-port interface eth1 vlan pvid 9
    set interfaces switch switch0 switch-port interface eth2 vlan pvid 10
    set interfaces switch switch0 switch-port interface eth2 vlan pvid 11
    commit
    save
    exit 
3

高人

专业

握手

霸气

雷人

吐血

山寨

奋斗

刚表态过的朋友 (3 人)

相关阅读

最新评论

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2024-4-19 18:28

返回顶部