《企业型方案样本.doc》由会员分享,可在线阅读,更多相关《企业型方案样本.doc(14页珍藏版)》请在金锄头文库上搜索。
1、中小公司型方案规定:某公司,专线接入,有华为路由器一台,三层互换机一台,二层互换机若干;1、规定划几种VLAN,为不同部门。2、所有主机可以通过路由器上网。设计思路:1、路由器配备比较简朴,重要做NAT转换和ACL控制哪些主机能上外网;2、三层互换机,划分VLAN,实现内部VLAN间路由,可直接接终端或二层互换机3、二层互换相接终端。设计时,关于防病毒ACL列表、VLAN间互联隔离技术等问题此处未讨论。感兴趣朋友,咱们可以另起篇章进行讨论。本设计以华为产品为例,思科产品配备原理相似,只是命令行不同而已。欢迎有志之士把它翻译成思科配备。基实也可以不要三层互换机,直接在路由器上做单臂也可以。只是不
2、适合复杂网络和发展。配备:一、路由器配备version 5.20,Release 1205P02,Basic#给路由器命名sysname HUAWE-ROUTE#domain default enable system#vlan 1#radius scheme systemserver-type extendedprimary authentication 127.0.0.1 1645primary accounting 127.0.0.1 1646user-name-format without-domain#domain systemaccess-limit disablestate ac
3、tiveidle-cut disableself-service-url disable#定义ACL列表,容许所有IP访问外网,这里你可以指定容许某些或禁止某些主机上网。acl number rule 0 permit#interface Aux0 async mode flowlink-protocol ppp#接专线接口,配备运营商分派IPinterface Ethernet0/0nat outbound duplex fullspeed 100ip address 218.22.3.126 255.255.255.252#接局域网三层互换机地址interface Ethernet0/1D
4、ESC TOSWitchduplex fullspeed 100ip address 192.168.8.1 255.255.255.252#interface NULL0#至公网默认路由ip route-static 0.0.0.0 0.0.0.0 218.22.3.125至三层互换机回程路由ip route-static 192.168.0.0 255.255.0.0 192.168.8.2#user-interface con 0user-interface aux 0未设立TELNET登陆密码,这样外网人登陆不了,固然你也登陆不了。哈安全吧。(如果想TELNET,需要设立密码和ACL禁
5、止外网人登陆)user-interface vty 0 4# Return二、三层互换配备#给互换机命名 sysname hwswich#设备SUPER密码super password level 3 cipher ;1$VGEA)N2C+1!#radius scheme systemserver-type huaweiprimary authentication 127.0.0.1 1645primary accounting 127.0.0.1 1646user-name-format without-domaindomain systemradius-scheme systemacces
6、s-limit disablestate activevlan-assignment-mode integeridle-cut disableself-service-url disablemessenger time disabledomain default enable system#local-server nas-ip 127.0.0.1 key huawei 建立业务VLAN及与路由器互联口VLANvlan 5desc to-router#vlan 10desc bumen1#vlan 20 desc bumen2#分别给SVI接口设计IP地址,即所属VLAN PC终端网关#int
7、erface Vlan-interface 5DESC to-routerip address 192.168.8.2 255.255.255.252interface Vlan-interface 10ip address 192.168.1.1 255.255.255.0#interface Vlan-interface 20ip address 192.168.2.1 255.255.255.0#与二层互换机互联接口interface Ethernet0/1duplex full speed 100port link-type trunkport trunk permit vlan 10
8、 20#接普通终端接口interface Ethernet0/2port access vlan 10#interface Ethernet0/3port access vlan 20 #interface Ethernet0/4shutdown#interface Ethernet0/5#interface Ethernet0/6shutdown# interface Ethernet0/7shutdown#interface Ethernet0/8shutdown#interface Ethernet0/9shutdown#interface Ethernet0/10shutdown#in
9、terface Ethernet0/11shutdown#interface Ethernet0/12shutdown#interface Ethernet0/13shutdown#interface Ethernet0/14 shutdown#interface Ethernet0/15shutdown#interface Ethernet0/16shutdown#interface Ethernet0/17shutdown#interface Ethernet0/18shutdown#interface Ethernet0/19shutdown#interface Ethernet0/20
10、shutdown#interface Ethernet0/21shutdown #interface Ethernet0/22shutdown#interface Ethernet0/23shutdown#与路由器互联接口interface Ethernet0/24desc to-router duplex full speed 100port access vlan 5#SNMP网关配备,可以不要snmp-agentsnmp-agent local-engineid 800007DB000FE23F864D6877snmp-agent community read publicsnmp-ag
11、ent sys-info contact HuaWei_Hotline orsnmp-agent sys-info location BeiJing Chinasnmp-agent sys-info version all#设立默认路由ip route-static 0.0.0.0 0.0.0.0 192.168.8.1user-interface aux 0设立TELNET登陆密码user-interface vty 0 4authentication-mode password set authentication password cipher CZP5O+PV9=FQ!#return三
12、、二层互换机配备#sysname L1-1#radius scheme systemserver-type huaweiprimary authentication 127.0.0.1 1645primary accounting 127.0.0.1 1646user-name-format without-domaindomain systemradius-scheme systemaccess-limit disablestate activeidle-cut disableself-service-url disablemessenger time disabledomain defau
13、lt enable system#local-server nas-ip 127.0.0.1 key huawei#interface Aux0/0#vlan 1#vlan 10#vlan 20#interface Ethernet0/1port access vlan 10#interface Ethernet0/2port access vlan 10#interface Ethernet0/3 port access vlan 10#interface Ethernet0/4port access vlan 10#interface Ethernet0/5port access vlan 10#interface Ethernet0/6port access vlan 10#interface Ethernet0/7port access vlan 10#interface Ethernet0/8port access vlan 10#interface Ethernet0/9port access vlan 10#