电话交换机设置(电话交换机设置外线)-9游会

网络拓扑图网络拓扑图

电话交换机设置(电话交换机设置外线)插图

小型网络结构,通过vlan划分为几个部门,通过vlan三层接口相互通信,实现广播域隔离;而且每个接入交换机使用eth-trunk进行端口聚合,提高了接入交换机和聚合交换机之间的带宽,并提供一定的链路冗余功能,增加网络的可靠性。

路由器配置信息

提供互联网接入、dns解析等

the device is running!system-view # 进入系统视图enter system view, return user view with ctrl z.[huawei]sysname ar #修改设备名称[ar]interface gigabitethernet 0/0/0 #进入端口0/0/0[ar-gigabitethernet0/0/0]ip address 10.11.12.13 24 #配置ip地址及子网掩码[ar-gigabitethernet0/0/0]ping 10.11.12.1 #检测连接性 ping 10.11.12.1: 56 data bytes, press ctrl_c to break reply from 10.11.12.1: bytes=56 sequence=1 ttl=128 time=90 ms reply from 10.11.12.1: bytes=56 sequence=2 ttl=128 time=10 ms reply from 10.11.12.1: bytes=56 sequence=3 ttl=128 time=10 ms reply from 10.11.12.1: bytes=56 sequence=4 ttl=128 time=10 ms reply from 10.11.12.1: bytes=56 sequence=5 ttl=128 time=10 ms — 10.11.12.1 ping statistics — 5 packet(s) tranitted 5 packet(s) received 0.00% packet loss round-trip min/g/max = 10/26/90 ms[ar-gigabitethernet0/0/0]quit [ar]interface gigabitethernet 0/0/1 #进入端口0/0/1[ar-gigabitethernet0/0/1]ip address 192.168.99.1 24 #配置ip地址及子网掩码,用于下联核心交换机[ar-gigabitethernet0/0/1]quit #退出端口[ar]acl 2000 #创建acl 2000[ar-acl-basic-2000]rule permit source 192.168.10.0 0.0.0.255 #配置允许源ip地址及长度,这是switch a的[ar-acl-basic-2000]rule permit source 192.168.20.0 0.0.0.255 #配置允许源ip地址及长度,这是switch b的[ar-acl-basic-2000]rule permit source 192.168.99.0 0.0.0.255 #配置允许源ip地址及长度[ar-acl-basic-2000]quit #退出acl[ar]interface gigabitethernet 0/0/0 #进入端口0/0/0[ar-gigabitethernet0/0/0]nat outbound 2000 #配置nat out匹配acl 2000[ar-gigabitethernet0/0/0]quit #退出端口[ar]dns server 114.114.114.114 #配置dns服务器地址[ar]dns resolve #开启dns解析功能[ar]ip route-static 192.168.10.0 255.255.255.0 192.168.99.2 #配置访问switch a的路由[ar]ip route-static 192.168.20.0 255.255.255.0 192.168.99.2 #配置访问switch b的路由[ar]ip route-static 0.0.0.0 0.0.0.0 10.11.12.1 #配置默认路由指向出口网关[ar]ping #检测网络连接性 ping 56 data bytes, press ctrl_c to break reply from 182.61.200.7: bytes=56 sequence=1 ttl=128 time=90 ms reply from 182.61.200.7: bytes=56 sequence=2 ttl=128 time=90 ms reply from 182.61.200.7: bytes=56 sequence=3 ttl=128 time=80 ms reply from 182.61.200.7: bytes=56 sequence=4 ttl=128 time=80 ms reply from 182.61.200.7: bytes=56 sequence=5 ttl=128 time=80 ms — ping statistics — 5 packet(s) tranitted 5 packet(s) received 0.00% packet loss round-trip min/g/max = 80/84/90 ms核心交换机配置信息the device is running!system-view #进入系统视图enter system view, return user view with ctrl z.[huawei]sysname switch core #修改设备名称[switch core]undo info-center enable #关闭信息提示info: information center is disabled.[switch core]vlan batch 10 20 99 #批量创建vlaninfo: this operation may take a few seconds. please wait for a moment…done.[switch core]interface gigabitethernet 0/0/1 #进入端口0/0/1[switch core-gigabitethernet0/0/1]port link-type access #配置端口类型[switch core-gigabitethernet0/0/1]port default vlan 99 #配置端口默认vlan[switch core-gigabitethernet0/0/1]quit #退出端口[switch core]interface eth-trunk 1 #进入eth-trunk 1端口[switch core-eth-trunk1]port link-type trunk #配置端口类型[switch core-eth-trunk1]port trunk allow-pass vlan 10 #配置允许通过的vlan[switch core-eth-trunk1]mode lacp-static #配置eth-trunk端口模式为lacp[switch core-eth-trunk1]quit #退出eth-trunk端口[switch core]interface eth-trunk 2 #进入eth-trunk 2端口[switch core-eth-trunk2]port link-type trunk #配置端口类型[switch core-eth-trunk2]port trunk allow-pass vlan 20 #配置允许通过的vlan[switch core-eth-trunk2]mode lacp-static #配置eth-trunk端口模式为lacp[switch core-eth-trunk2]quit #退出eth-trunk端口[switch core]interface gigabitethernet 0/0/2 #进入端口0/0/1[switch core-gigabitethernet0/0/2]eth-trunk 1 #添加端口到eth-trunk 1info: this operation may take a few seconds. please wait for a moment…done.[switch core-gigabitethernet0/0/2]quit #退出端口[switch core]interface gigabitethernet 0/0/3 #进入端口0/0/3[switch core-gigabitethernet0/0/3]eth-trunk 1 #添加端口到eth-trunk 1info: this operation may take a few seconds. please wait for a moment…done.[switch core-gigabitethernet0/0/3]quit #退出端口[switch core]interface gigabitethernet 0/0/4 #进入端口0/0/4[switch core-gigabitethernet0/0/4]eth-trunk 2 #添加端口到eth-trunk 2info: this operation may take a few seconds. please wait for a moment…done.[switch core-gigabitethernet0/0/4]quit #退出端口[switch core]interface gigabitethernet 0/0/5 #进入端口0/0/5[switch core-gigabitethernet0/0/5]eth-trunk 2 #添加端口到eth-trunk 2info: this operation may take a few seconds. please wait for a moment…done.[switch core-gigabitethernet0/0/5]quit #退出端口[switch core]interface vlanif 99 #进入vlan if99 端口 [switch core-vlanif99]ip address 192.168.99.2 24 #配置ip地址及子网掩码[switch core-vlanif99]ping 192.168.99.1 #检测与路由器的连通性 ping 192.168.99.1: 56 data bytes, press ctrl_c to break reply from 192.168.99.1: bytes=56 sequence=1 ttl=255 time=100 ms reply from 192.168.99.1: bytes=56 sequence=2 ttl=255 time=50 ms reply from 192.168.99.1: bytes=56 sequence=3 ttl=255 time=50 ms reply from 192.168.99.1: bytes=56 sequence=4 ttl=255 time=50 ms reply from 192.168.99.1: bytes=56 sequence=5 ttl=255 time=50 ms — 192.168.99.1 ping statistics — 5 packet(s) tranitted 5 packet(s) received 0.00% packet loss round-trip min/g/max = 50/60/100 ms[switch core-vlanif99]quit #退出端口[switch core]interface vlanif 10 #进入vlan if 10 端口[switch core-vlanif10]ip address 192.168.10.1 24 #配置ip地址及子网掩码[switch core-vlanif10]quit #退出端口[switch core]interface vlanif 20 #进入vlan if 20端口[switch core-vlanif20]ip address 192.168.20.1 24 #配置ip地址及子网掩码[switch core-vlanif20]quit #退出端口核心交换机的dhcp配置信息[switch core]ip route-static 0.0.0.0 0.0.0.0 192.168.99.1 #配置核心交换机的默认路由并指向上级路由器[switch core]dhcp enable #开启dhcp功能info: the operation may take a few seconds. please wait for a moment.done.[switch core]ip pool huawei-10 #创建ip地址池huawei-10info:it's successful to create an ip address pool.[switch core-ip-pool-huawei-10]network 192.168.10.0 mask 24 #配置地址池网段及子网掩码长度[switch core-ip-pool-huawei-10]gateway-list 192.168.10.1 #配置地址池网关[switch core-ip-pool-huawei-10]dns-list 114.114.114.114 #配置地址池dns地址[switch core-ip-pool-huawei-10]quit #退出[switch core]ip pool huawei-20 #创建ip地址池huawei-20info:it's successful to create an ip address pool. [switch core-ip-pool-huawei-20]network 192.168.20.0 mask 24 #配置地址池网段及子网掩码长度[switch core-ip-pool-huawei-20]gateway-list 192.168.20.1 #配置地址池网关[switch core-ip-pool-huawei-20]dns-list 114.114.114.114 #配置地址池dns地址[switch core-ip-pool-huawei-20]quit #退出[switch core]interface vlanif 10 #进入vlan if 10端口[switch core-vlanif10]dhcp select global #配置dhcp分配方式为全局[switch core-vlanif10]quit #退出[switch core]interface vlanif 20 #进入vlan if 20端口[switch core-vlanif20]dhcp select global #配置dhcp分配方式为全局[switch core-vlanif20]quit #退出接入交换机的配置信息

开关a

the device is running!system-view #进入系统视图enter system view, return user view with ctrl z.[huawei]sysname switch a #修改设备名称[switch a]undo info-center enable #关闭信息提示info: information center is disabled.[switch a]vlan 10 #创建vlan 10[switch a-vlan10]quit #退出[switch a]interface eth-trunk 1 #进入eth-trunk 1端口[switch a-eth-trunk1]port link-type trunk #配置端口类型[switch a-eth-trunk1]port trunk allow-pass vlan 10 #配置允许通过的vlan为10[switch a-eth-trunk1]mode lacp-static #配置eth-trunk模式为lacp[switch a-eth-trunk1]quit #退出端口[switch a]interface gigabitethernet 0/0/1 #进入端口0/0/1[switch a-gigabitethernet0/0/1]eth-trunk 1 #添加端口到eth-trunk 1info: this operation may take a few seconds. please wait for a moment…done.[switch a-gigabitethernet0/0/1]quit #退出端口[switch a]interface gigabitethernet 0/0/2 #进入端口0/0/2[switch a-gigabitethernet0/0/2]eth-trunk 1 #添加端口到eth-trunk 1info: this operation may take a few seconds. please wait for a moment…done.[switch a-gigabitethernet0/0/2]quit #退出端口[switch a]interface gigabitethernet 0/0/3 #进入端口0/0/3[switch a-gigabitethernet0/0/3]port link-type access #配置端口类型[switch a-gigabitethernet0/0/3]port default vlan 10 #配置端口默认vlan[switch a-gigabitethernet0/0/3]quit #退出端口[switch a]interface gigabitethernet 0/0/4 #进入端口0/0/4[switch a-gigabitethernet0/0/4]port link-type access #配置端口类型[switch a-gigabitethernet0/0/4]port default vlan 10 #配置端口默认vlan[switch a-gigabitethernet0/0/4]quit #退出端口

开关b

the device is running!system-view #进入系统视图enter system view, return user view with ctrl z.[huawei]sysname switch b #修改设备名称[switch b]undo info-center enable #关闭信息提示info: information center is disabled.[switch b]vlan 20 #创建vlan20[switch b-vlan20]quit #退出[switch b]interface eth-trunk 2 #进入eth-trunk 2端口[switch b-eth-trunk2]port link-type trunk #配置端口类型[switch b-eth-trunk2]port trunk allow-pass vlan 20 #配置允许通过的vlan[switch b-eth-trunk2]mode lacp-static #配置eth-trunk模式为lacp[switch b-eth-trunk2]quit #退出端口[switch b]interface gigabitethernet 0/0/1 #进入端口0/0/1[switch b-gigabitethernet0/0/1]eth-trunk 2 #添加端口到eth-trunk 2info: this operation may take a few seconds. please wait for a moment…done.[switch b-gigabitethernet0/0/1]quit #退出端口[switch b]interface gigabitethernet 0/0/2 #进入端口0/0/2[switch b-gigabitethernet0/0/2]eth-trunk 2 #添加端口到eth-trunk 2info: this operation may take a few seconds. please wait for a moment…done.[switch b-gigabitethernet0/0/2]quit #退出端口[switch b]interface gigabitethernet 0/0/3 #进入端口0/0/3[switch b-gigabitethernet0/0/3]port link-type access #配置端口类型[switch b-gigabitethernet0/0/3]port default vlan 20 #配置端口默认vlan[switch b-gigabitethernet0/0/3]quit #退出端口[switch b]interface gigabitethernet 0/0/4 #进入端口0/0/4[switch b-gigabitethernet0/0/4]port link-type access #配置端口类型[switch b-gigabitethernet0/0/4]port default vlan 20 #配置端口默认vlan[switch b-gigabitethernet0/0/4]quit #退出端口检测配置

pc1现在可以获得核心交换机上分配的ip地址信息,并访问pc4,还可以访问百度。

pc1pc1

百度及pc4百度和pc4

pc3现在可以获得核心交换机上分配的ip地址信息,并访问pc2,还可以访问百度。

pc3pc3

百度及pc2百度和pc2

ar接入路由器可以访问pc1和pc4

核心交换机的dhcp分配信息

地址池华为-10分配有两个地址。

地址池华为-20也分配了两个地址出去。

整合之前的配置。

路由器ar easy ip上线。

交换机跨设备vlan通信配置,三层vlanif通信配置

当交换机是内部网关时,它负责转发内部流量,而路由器负责转发外部流量。

最后#谢谢# #华为交换机# #路由器# #上网#

免责声明:本站所有文章内容,图片,视频等均是来源于用户投稿和互联网及文摘转载整编而成,不代表本站观点,不承担相关法律责任。其著作权各归其原作者或其出版社所有。如发现本站有涉嫌抄袭侵权/违法违规的内容,侵犯到您的权益,请在线联系站长,一经查实,本站将立刻删除。 本文链接:https://www.andon8.com/6909.html

网站地图