打印

一个VLAN设置实例

[复制链接]
596|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
keer_zu|  楼主 | 2023-9-14 15:19 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式




emac1: 
        address: xx:xx:xx:xx:00:90
        inet 17.18.5.88 netmask 0xffffff00 broadcast 17.18.5.255

rt0:
        address: xx:xx:xx:xx:00:88
        inet 192.168.1.12 netmask 0xffffff00 broadcast 192.168.1.255
        
bridge0: flags=0 mtu 1500
vlan11:
        vlan: 11 priority: 0 parent: emac1
        address: xx:xx:xx:xx:00:90
        inet 17.18.11.90 netmask 0xffffff00 broadcast 17.18.11.255
      
vlan16:
        vlan: 16 priority: 0 parent: emac1
        address: xx:xx:xx:xx:00:90
        inet 17.18.16.90 netmask 0xffffff00 broadcast 17.18.16.255
      
vlan2:
        vlan: 2 priority: 0 parent: rt0
        address: xx:xx:xx:xx:00:88
        inet 17.18.2.88 netmask 0xffffff00 broadcast 17.18.2.255
      
vlan3:
        vlan: 3 priority: 0 parent: rt0
        address: xx:xx:xx:xx:00:88
        inet 17.18.3.88 netmask 0xffffff00 broadcast 17.18.3.255
      
vlan4:
        vlan: 4 priority: 0 parent: rt0
        address: xx:xx:xx:xx:00:88
        inet 17.18.4.88 netmask 0xffffff00 broadcast 17.18.4.255
        
vlan13:
        vlan: 13 priority: 0 parent: rt0
        address: xx:xx:xx:xx:00:88
        inet 17.18.13.88 netmask 0xffffff00 broadcast 17.18.13.255
        

# arp -a
? (17.18.2.30) at xx:xx:xx:xx:00:30 on vlan2 permanent
? (17.18.2.56) at xx:xx:xx:xx:00:56 on vlan2 permanent
? (17.18.2.57) at xx:xx:xx:xx:00:57 on vlan2 permanent
? (17.18.2.58) at xx:xx:xx:xx:00:58 on vlan2 permanent
? (17.18.2.59) at xx:xx:xx:xx:00:59 on vlan2 permanent
? (17.18.2.66) at xx:xx:xx:xx:00:66 on vlan2 permanent
? (17.18.2.97) at xx:xx:xx:xx:00:97 on vlan2 permanent
? (17.18.2.99) at xx:xx:xx:xx:00:99 on vlan2 permanent
? (17.18.3.50) at xx:xx:xx:xx:00:50 on vlan3 permanent
? (17.18.3.55) at xx:xx:xx:xx:00:55 on vlan3 permanent
? (17.18.3.99) at xx:xx:xx:xx:00:99 on vlan3 permanent
? (17.18.4.81) at xx:xx:xx:xx:00:81 on vlan4 permanent
? (17.18.4.91) at xx:xx:xx:xx:00:91 on vlan4 permanent
? (17.18.4.98) at xx:xx:xx:xx:00:98 on vlan4 permanent
? (17.18.5.89) at xx:xx:xx:xx:00:89 on emac1 permanent
? (17.18.11.97) at xx:xx:xx:xx:00:97 on vlan11 permanent
? (17.18.13.97) at xx:xx:xx:xx:00:97 on vlan13 permanent
? (17.18.18.97) at xx:xx:xx:xx:00:97 on vlan18 permanent
? (192.168.1.12) at xx:xx:xx:xx:00:88 on rt0 permanent


使用特权

评论回复

相关帖子

沙发
keer_zu|  楼主 | 2023-9-14 16:11 | 只看该作者




如果把vlan有关的设置从rtl9072中完全删除,那么就会出现这样的结果:

如果以此ip为sip,那么发出的组播包其它port收不到。

使用特权

评论回复
板凳
keer_zu|  楼主 | 2023-9-14 16:14 | 只看该作者
如果把vlan有关的设置从rtl9072中完全删除,ifconfig内容好像没有变化,这说明ifconfig结果只和soc系统的ifconfig设置脚本的内容有关。
但是arp -a的结果里面之前可以ping到的ip地址:192.168.1.12变成了测试主机的192.168.1.2

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:qq群:49734243 Email:zukeqiang@gmail.com

1349

主题

12426

帖子

53

粉丝