李成笔记网

专注域名、站长SEO知识分享与实战技巧

小型网络中的单臂路由器 家用单臂路由

一、单臂路由器技术

为什么要将路由器的用户隔离,再联通

单臂路由器如何实现vlan互联。


二、ensp 图

三、代码实现

3.1、2台PC设置IP

3.2、代码如何实现

3.2.1、设置GE 0/0/1 端口

int g0/0/1   //进入端口
port link-type access   //设置连接模式
port default vlan 10    //放到到vlan20里

3.2.2、设置GE 0/0/2 端口

int g0/0/2   //进入端口
port link-type access   //设置连接模式
port default vlan 20    //放到到vlan20里

3.2.3、设置GE 0/0/3 端口

int g0/0/3    // 进入端口
port link-type trunk    // 设置连接模式
port trunk allow-pass vlan all   //允许所有vlan通过

3.2.4、设置路由器AR1

int g0/0/0.10                  //进入虚拟端口0.10
dot1q termination vid 10       //给改端口划到VLAN 10
ip address 1.1.1.254 255.255.255.0  //设置IP地址
arp broadcast enable                //开启arp
int g0/0/0.20
dot1q termination vid 20
ip address 2.2.2.2 255.255.255.0    //设置IP地址
arp broadcast enable                //开启arp


四、单臂路由器测试

用PC1 PING PC2 ip

比较难理解的有 dot1q termination 和 arp broadcast enable

这个要多练习。

五、总结

很多小公司都是用的单臂路由器。

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言