Cisco三层vlan配置要求相互ping通-宜昌电脑耗材网
最新商讯
·宜昌打印机清零 EPSON打印机清零 佳能打印机清零 收...
·华硕办公本a豆灵耀顽石飞行堡垒20191110报价
·打印机加粉的过程当中,应该要保证哪几个方面呢?
·西数 希捷 纽曼 东芝联想移动硬盘20191110报价
·宜昌激光电视安装技术,上门安装激光电视,网购激光电视安装
更多>> 
最近浏览过的商品
还没有浏览过的商品。
 Cisco三层vlan配置要求相互ping通
Cisco三层vlan配置相互ping通
1、用Internet路由器模仿公网路由,配置如下
Router>enable
Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#inters1/0
Router(config-if)#ipadd1.1.1.1255.255.255.0
Router(config-if)#clockrate6400
Router(config-if)#noshutdown
模拟公网路由器配置完成
2、配置企业路由器
配置连接公网的接口IP地址把接口定义为outside
Router>enable
Router#configt
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#inters1/1
Router(config-if)#ipadd1.1.1.2255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#
%LINK-5-CHANGED:InterfaceSerial1/1,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial1/1,changedstatetoup
Router(config-if)#ipnatoutside
配置连接三层交换机接口IP地址把接口定义为inside
Router(config)#interf0/0
Router(config-if)#ipadd172.16.1.2255.255.255.0
Router(config-if)#noshutdown
Router(config-if)#
%LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoup
Router(config-if)#ipnatinside
配置acl访问控制列表,不配置无法访问通过路由访问公网(这里特别重要)如果不把所有要
允许访问公网的网段配置成允许访问的状态,路由器就会阻止这些网段访问公网
Router(config)#access-list10permit192.168.1.00.0.0.255
Router(config)#access-list10permit192.168.2.00.0.0.255
Router(config)#access-list10permit192.168.3.00.0.0.255
配置NAT地址转换
Router(config)#ipnatinsidesourcelist10interfaces1/1overload
3、配置三层交换机
创建一个vlan5用来配置与路由连接的地址,并把f0/1划入vlan5
Switch(config)#vlan5
Switch(config)#interf0/1
Switch(config-if)#swit
Switch(config-if)#switchportmo
Switch(config-if)#switchportmodeacc
Switch(config-if)#switchportmodeaccess
Switch(config-if)#swac
Switch(config-if)#swaccessvlan5
配置vlan地址
Switch(config-if)#intervlan5
Switch(config-if)#
%LINK-5-CHANGED:InterfaceVlan5,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan5,changedstatetoup
Switch(config-if)#ipadd172.16.1.1255.255.255.0
Switch(config-if)#noshutdown
把其它vlan也配置好
配置Vlan2
Switch(config)#interf0/2
Switch(config-if)#swmoacc
Switch(config-if)#swaccvlan2
Switch(config-if)#intervlan2
Switch(config-if)#
%LINK-5-CHANGED:InterfaceVlan2,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan2,changedstatetoup
Switch(config-if)#ipadd192.168.1.254255.255.255.0
Switch(config-if)#noshut
Switch(config-if)#
配置Vlan3
Switch(config-if)#noshut
Switch(config-if)#interf0/3
Switch(config-if)#swmoacc
Switch(config-if)#swaccvlan3
Switch(config-if)#intervlan3
Switch(config-if)#
%LINK-5-CHANGED:InterfaceVlan3,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan3,changedstatetoup
Switch(config-if)#ipadd192.168.2.254255.255.255.0
配置Vlan4
Switch(config-if)#interf0/4
Switch(config-if)#swmoacc
Switch(config-if)#swaccvlan4
Switch(config-if)#intervlan4
Switch(config-if)#
%LINK-5-CHANGED:InterfaceVlan4,changedstatetoup
%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan4,changedstatetoup
Switch(config-if)#ipadd192.168.3.254255.255.255.0
配置DHCP服务器
配置vlan2DHCP服务器
Switch(config)#ipdhcppoolvlan2
Switch(dhcp-config)#default-router192.168.1.254
Switch(dhcp-config)#dns-server1.1.1.1
Switch(dhcp-config)#network192.168.1.0255.255.255.0
Switch(dhcp-config)#exit
配置vlan3DHCP服务器
Switch(config)#ipdhcppoolvlan3
Switch(dhcp-config)#default-router192.168.2.254
Switch(dhcp-config)#dns-server2.2.2.2
Switch(dhcp-config)#network192.168.2.0255.255.255.0
Switch(dhcp-config)#exit
配置vlan4DHCP服务器
Switch(config)#ipdhcppoolvlan4
Switch(dhcp-config)#default-router192.168.3.254
Switch(dhcp-config)#dns-server3.3.3.3
Switch(dhcp-config)#network192.168.3.0255.255.255.0
Switch(dhcp-config)#exit
开启三层交换机路由功能
iprouting
THEN所有的vlan间的电脑已经能够相互ping通了
发布日期:2021/10/7
  宜昌打印机维修 复印机 一体机上门维修热线:13677173728 邢师傅 0717-6736581
 
购物指南
选择配送方式
付款收货
挑选商品
送货说明
购物流程
订购方式
注意事项
支付方式
货到付款区域
支付方式说明
货到付款
扫码支付
服务政策
售后服务
退换货原则
其他服务协议
服务中心
关于我们
关于我们

宜昌电脑耗材网  版权所有 Copyright©2014-2020  Www.Ycoaw.Com ALL Rights Resrved ;商务QQ:7533615
产品信息 - 资料 - 上传 - 新品牌报价 - 行业新闻投信箱sysharp@126.com  0717-6736581 
宜昌市福瑞电脑科技有限公司   鄂ICP备18013266号  鄂公网安备:42050202000383号
文章版权归原作者所有如有侵权请立即与我们联系,我们将及时处理

客服中心
扫描上面二维码即可
访问手机版购物商城
耗材:0717-6736581
维修:13677173728

展开客服
友情链接平台 网站地图 ALEXA