乳环狗链里番:CISCO 3750G VLAN配置实例
来源:百度文库 编辑:中财网 时间:2024/04/28 15:58:23
CISCO 3750G VLAN配置实例 收藏
网络环境:防火墙->3750G->VLAN->PC配置目的:3750G上按端口划分VLAN,各VLAN间可互访、可上外网,各VLAN的PC由Windows 2003 Server的DHCP分配。为测试只设了三个VLAN,多个VLAN也同样划分即可。参数:3750G上,VLAN1 IP:123.123.0.11, VLAN2 IP:192.168.0.254, VLAN3 IP:192.168.2.2542003 Server 位于VLAN1 IP:123.123.0.4、网关:123.123.0.11防火墙内网卡IP:123.123.0.2543750G中端口VLAN划分、IP地址指定、VLAN路由、默认网关、静态路由等大多数参数都可以用CISCO Network Assistant管理工具来设置,但启用DHCP功能,DHCP中继、指定DHCP服务器地址、VLAN的ip helper-address地址(红色部分)需进入终端管理中设置。DHCP服务器中,在DHCP中增加123.123.0.0、192.168.0.0、192.168.2.0三个作用域,并分别设置好分配给PC的路由为各VLAN IP,DNS为外网的DNS。注意:DHCP的网关必须是所在VLAN的IP地址;防火墙中增加123.123.0.0 0.0.0.0、192.168.0.0 0.0.0.0的回指路由,增加123.123.0.0、192.168.0.0的上网NAT设置等让该网段可上网,
具体配置如下:show runBuilding configuration... Current configuration : 3334 bytes!version 12.2service configno service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Switch3750G!enable secret 5 $1$Imhn$8cgG7/eYcVQhnSzDFt1x10!no aaa new-modelswitch 1 provision ws-c3750g-24ts-1usystem mtu routing 1500ip subnet-zeroip routing ;启用IP路由功能,使VLAN间能互访ip dhcp relay information trust-all ;启用DHCP转发功能,配置时需在终端中执行Service DHCP打开DHCP功能!ip dhcp-server 123.123.0.4 ;指定外部DHCP服务器地址!!no file verify autospanning-tree mode pvstspanning-tree extend system-id!vlan internal allocation policy ascending!interface GigabitEthernet1/0/1 switchport access vlan 2 switchport mode access switchport port-security switchport port-security aging time 2 switchport port-security violation restrict switchport port-security aging type inactivity macro description cisco-desktop spanning-tree portfast spanning-tree bpduguard enable!interface GigabitEthernet1/0/2 switchport mode access spanning-tree portfast!switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/4 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/5 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/6 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/7 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/8 switchport mode access spanning-tree portfastinterface GigabitEthernet1/0/9 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/10 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/11 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/12 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/13 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/14 switchport mode access!interface GigabitEthernet1/0/15 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/16 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/17 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/18 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/19 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/20spanning-tree portfast!interface GigabitEthernet1/0/21 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/22 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/23 switchport access vlan 3 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/24 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/25!interface GigabitEthernet1/0/26interface GigabitEthernet1/0/27!interface GigabitEthernet1/0/28!interface Vlan1 ;VLAN1定义 ip address 123.123.0.11 255.255.255.0!interface Vlan2 ;VLAN1定义 ip address 192.168.0.254 255.255.255.0 ip helper-address 123.123.0.4!interface Vlan3 ;VLAN1定义 ip address 192.168.2.254 255.255.255.0 ip helper-address 123.123.0.4!router rip!ip default-gateway 123.123.0.254 ;网络网关地址,外网路由器的内网卡地址ip classlessip route 0.0.0.0 0.0.0.0 123.123.0.254 ;上外网的静态路由ip http server!!!!line con 0line vty 0 4 password login length 0line vty 5 15 password login length 0!end Switch3750G# 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/azhi11111111/archive/2009/12/29/5099549.aspx
网络环境:防火墙->3750G->VLAN->PC配置目的:3750G上按端口划分VLAN,各VLAN间可互访、可上外网,各VLAN的PC由Windows 2003 Server的DHCP分配。为测试只设了三个VLAN,多个VLAN也同样划分即可。参数:3750G上,VLAN1 IP:123.123.0.11, VLAN2 IP:192.168.0.254, VLAN3 IP:192.168.2.2542003 Server 位于VLAN1 IP:123.123.0.4、网关:123.123.0.11防火墙内网卡IP:123.123.0.2543750G中端口VLAN划分、IP地址指定、VLAN路由、默认网关、静态路由等大多数参数都可以用CISCO Network Assistant管理工具来设置,但启用DHCP功能,DHCP中继、指定DHCP服务器地址、VLAN的ip helper-address地址(红色部分)需进入终端管理中设置。DHCP服务器中,在DHCP中增加123.123.0.0、192.168.0.0、192.168.2.0三个作用域,并分别设置好分配给PC的路由为各VLAN IP,DNS为外网的DNS。注意:DHCP的网关必须是所在VLAN的IP地址;防火墙中增加123.123.0.0 0.0.0.0、192.168.0.0 0.0.0.0的回指路由,增加123.123.0.0、192.168.0.0的上网NAT设置等让该网段可上网,
具体配置如下:show runBuilding configuration... Current configuration : 3334 bytes!version 12.2service configno service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Switch3750G!enable secret 5 $1$Imhn$8cgG7/eYcVQhnSzDFt1x10!no aaa new-modelswitch 1 provision ws-c3750g-24ts-1usystem mtu routing 1500ip subnet-zeroip routing ;启用IP路由功能,使VLAN间能互访ip dhcp relay information trust-all ;启用DHCP转发功能,配置时需在终端中执行Service DHCP打开DHCP功能!ip dhcp-server 123.123.0.4 ;指定外部DHCP服务器地址!!no file verify autospanning-tree mode pvstspanning-tree extend system-id!vlan internal allocation policy ascending!interface GigabitEthernet1/0/1 switchport access vlan 2 switchport mode access switchport port-security switchport port-security aging time 2 switchport port-security violation restrict switchport port-security aging type inactivity macro description cisco-desktop spanning-tree portfast spanning-tree bpduguard enable!interface GigabitEthernet1/0/2 switchport mode access spanning-tree portfast!switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/4 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/5 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/6 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/7 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/8 switchport mode access spanning-tree portfastinterface GigabitEthernet1/0/9 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/10 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/11 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/12 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/13 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/14 switchport mode access!interface GigabitEthernet1/0/15 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/16 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/17 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/18 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/19 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/20spanning-tree portfast!interface GigabitEthernet1/0/21 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/22 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/23 switchport access vlan 3 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/24 switchport mode access spanning-tree portfast!interface GigabitEthernet1/0/25!interface GigabitEthernet1/0/26interface GigabitEthernet1/0/27!interface GigabitEthernet1/0/28!interface Vlan1 ;VLAN1定义 ip address 123.123.0.11 255.255.255.0!interface Vlan2 ;VLAN1定义 ip address 192.168.0.254 255.255.255.0 ip helper-address 123.123.0.4!interface Vlan3 ;VLAN1定义 ip address 192.168.2.254 255.255.255.0 ip helper-address 123.123.0.4!router rip!ip default-gateway 123.123.0.254 ;网络网关地址,外网路由器的内网卡地址ip classlessip route 0.0.0.0 0.0.0.0 123.123.0.254 ;上外网的静态路由ip http server!!!!line con 0line vty 0 4 password login length 0line vty 5 15 password login length 0!end Switch3750G# 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/azhi11111111/archive/2009/12/29/5099549.aspx
CISCO 1900系列 和2900系列 交换机 VLAN的配置方法
Cisco配置
.::请教::.CISCO 路由器 访问控制列表怎么设置?命令及配置实例
.::请教::.CISCO 路由器 访问控制列表 怎么设置?命令及配置实例
cisco 2950如何划分公共vlan
求教配置super vlan
如何配置交换机vlan
怎么配置VLAN
配置VLAN的端口
VLAN的端口配置
netsim的vlan配置
CISCO配置PPPOE祥解
关于Cisco交换机 划分VLAN 的操作问题
求VLAN配置实验报告!!!
三层交换机配置VLAN以后,
常用的路由配置vlan
Cisco 3750G-24TS-1U和3750G-24TS-S的区别
cisco E3的配置问题!
cisco华为全线产品配置手册,
关于CISCO 2611配置问题
CISCO设备配置视频下载
Cisco路由器的安全配置
请问3com 4050如何配置Vlan 及Vlan互访?
boson netsim 中vlan的配置