迈普交换机如何配置sub地址
❶ 如何修改迈普交换机配置
sw>enable
sw#conf ter
sw<conf># //在全局配置模式下配置交换机
sw<conf># interface fa0/1
sw<conf-if># //在接口模式下修改接口配置
sw<conf># interface vlan ID
sw<conf-vlan># //在vlan 中配置vlan信息
这是交换机的三种基本配置模式,不知道你明白没?
❷ 迈普mp1800路由器接华为三层交换机,怎么配置,路由器地址是192.168.1.1 交换机地址是172.16.1.1
路由器的lan口地址必须和交换机上行vlan接口地址在同一网段且不冲突才能访问,还要在交换机和路由器上配置相应的路由,如
路由器地址改成192.168.0.2 255.255.255.0,添加静态路由192.168.0.0 255.255.0.0指向192.168.0.1,注意子网掩码
交换机添加静态路由0.0.0.0 0.0.0.0指向192.168.0.2
❸ H3C交换机配置端口IP sub实例
H3C交换机配置端口IP sub实例
为了方便将某些端口的配置与指定端口保持一致,可以使用 configuration 命令将指定端口的配置拷贝到其他端口。那么H3C交换机怎么配置端口IP sub?端口命令是什么呢?下面跟我一起来看看吧!
H3C接口获取IP地址有以下方式:
1,通过手工指定
2,通过BOOTP分配得到IP地址
3,通过DHCP分配得到IP地址
一个接口只能有一个主IP地址,新配置的主IP地址将覆盖原来的主IP
当接口被配置为通过BOOTP和DHCP获取IP后,该接口不能在分配从IP地址
举例,同一VLAN中有个两个IP段,172.16.1.0和172.16.2.0
sys
[switch]interface vlan-interface 1
[switch-vlan-interface1]ip address 172.16.1.1 255.255.255.0
[switch-vlan-interface1]ip address 172.16.2.1 255.255.255.0 sub
延伸阅读:H3C交换机简单配置案例
这里使用的H3C交换机是H126A,仅仅只做了最基本的配置以满足使用。
配置中可以通过display current-configura命令来显示当前使用的配置内容。
# 配置VLAN 1
system-view
System View:return to User View with Ctrl+Z.
[Sysname]vlan 1
[Sysname-vlan1]quit
[Sysname]management-vlan1
[Sysname]interfaceVlan-interface 1
[Sysname-Vlan-interface1]ip address 10.0.1.201 255.255.255.0
# 显示VLAN 接口1 的相关信息。
display ip interface Vlan-interface 1
# 创建VLAN(H3C不支持cisco的VTP,所以只能添加静态VLAN)
system-view
System View:return to User View with Ctrl+Z.
[H3C_TEST]vlan 99
[H3C_TEST-vlan99]nameseicoffice
[H3C_TEST-vlan99]quit
# 把交换机的端端口划分到相应的Vlan中
[H3C_TEST]interfaceethernet1/0/2//进入端口模式
[H3C_TEST-Ethernet1/0/2]portlink-type access //设置端口的.类型为access
[H3C_TEST-Ethernet1/0/2]portaccess vlan 99//把当前端口划到vlan 99
[H3C_TEST]vlan 99
[H3C_TEST-vlan99]portethernet1/0/1 to ethernet1/0/24//把以及网端口1/0/1到1/0/24划到vlan99
[H3C_TEST-vlan99]quit
[H3C_TEST-GigabitEthernet1/2/1]porttrunk permit vlan 1 99 // {ID|All} 设置trunk端口允许通过的VLAN
------------------------------------
# 配置本地用户
system-view
System View:return to User View with Ctrl+Z.
[Sysname]local-userh3c
New local useradded.
[Sysname-luser-h3c]service-typetelnet level 3
[Sysname-luser-h3c]passwordsimple h3c
# 配置欢迎信息
[H3C_TEST]headerlogin %Welcome to login h3c!%
# 配置用户认证方式telnet(vty 0-4)
[H3C_TEST]user-interfacevty 0 4
[H3C_TEST-ui-vty0-4]authentication-modescheme
[H3C_TEST-ui-vty0-4]protocolinbound telnet
[H3C_TEST-ui-vty0-4]superauthentication-mode super-password
[H3C_TEST-ui-vty0-4]quit
[H3C_TEST]superpassword level 3 simple h3c //用户登陆后提升权限的密码
# 配置Radius策略
[H3C_TEST]radiusscheme radius1
New Radius scheme
[H3C_TEST-radius-radius1]primaryauthentication 10.0.1.253 1645
[H3C_TEST-radius-radius1]primaryaccounting 10.0.1.253 1646
[H3C_TEST-radius-radius1]secondaryauthentication 127.0.0.1 1645
[H3C_TEST-radius-radius1]secondaryaccounting 127.0.0.1 1646
[H3C_TEST-radius-radius1]timer5
[H3C_TEST-radius-radius1]keyauthentication h3c
[H3C_TEST-radius-radius1]keyaccounting h3c
[H3C_TEST-radius-radius1]server-typeextended
[H3C_TEST-radius-radius1]user-name-formatwithout-domain
# 配置域
[H3C_TEST]domainh3c
[H3C_TEST-isp-h3c]authenticationradius-scheme radius1 local
[H3C_TEST-isp-h3c]schemeradius-scheme radius1 local
[H3C_TEST]domaindefault enable h3c
# 配置在远程认证失败时,本地认证的key
[H3C_TEST]local-servernas-ip 127.0.0.1 key h3c
;❹ 迈普交换机配置
二层vlan全隔离配置如下: 假设0/23口与上端路由器相连,其它所有口全部隔离,那么配置是: #conf t #vlan 1 ;第一个用户vlan #port 0/0,0/23 untag ;用户端口为untag类型,也包含上联口 #no port 0/1-0/22 ;因vlan1里出厂包含所有端口,故其它端口要去掉 #exit #vlan 2 ;第二个用户vlan #port 0/1,0/23 untag #exit ...... ;依此类推直到第23个用户 #vlan 23 ;第23个用户vlan #port 0/22-0/23 untag #exit #vlan 24 ;router的vlan #port 0/0-0/23 untag ;所有用户和router都在这个vlan #exit --------------------------------------------------------------------- #port 0/0 ;进入第一个用户端口 #pvid 1 ;第一个用户端口pvid是1 #port 0/1 ;进第二个用户端口 #pvid 2 ;第二个用户端口pvid是2 ...... ;依此类推直到第0/22端口 #pvid 24 ;router的端口pvid是24 #end #wr
采纳哦
❺ 迈普路由器与迈普交换机 如何配置单臂路由
管理设置 主要设置路由器就可以了假设用f0作外网口ip为32.174.248/24,网关为32.174.1,内网接口使用交换口,使用DHCP,配置步骤如下:2700>enable2700#conf t2700(config)#ip access-list standard 12700(config-nacl-std)#permit 192.168.0 0.2552700(config-nacl-std)#exit2700(config)#ip nat inside source list 1 int f0 overload2700(config)#ip route 0.0 0.0 32.174.12700(config)#int f02700(config-if-fastethernet0)#ip add 32.174.248 255.255.255.02700(config-if-fastethernet0)#ip nat outside2700(config-if-fastethernet0)#exit2700(config)#int sw02700(config-if-switchethernet0)#ip add 192.168.254 255.255.255.02700(config-if-switchethernet0)#vlan 12700(config-if-switchethernet0)#ip nat inside2700(config-if-switchethernet0)#exit2700(config)#ip dhcp pool pl12700(dhcp-config)#range 192.168.1 192.168.250 255.255.255.02700(dhcp-config)#default-router 192.168.2542700(dhcp-config)#dns-server 61.139.69 202.18.10/DNS根据您当地的地址配置,不是这个ip2700(dhcp-config)#exit2700(config)#exit2700#wr
❻ 迈普交换机配置问题
其实不是很麻烦的啊 从路由器过来的 网线 直接接到第一个交换机的第一口 从第一交换机的2口做成下连交换机的口 就可以的啊 以此类推 3口做第3个交换机的 4口做第4个交换机的 就可以啊
login:admin
password:admin
Switch>enable
Switch#configure terminal 进入配置模式
Switch(config)#vlan 2 创建vlan 2
Switch(config-vlan2)#port 0/0 tag 透传级联端口
Switch(config)#exit
Switch(config)#layer2-mode disable 关闭2层模式
Switch(config)#interface sw0 进入 SW0接口
Switch(config-if-sw0)#ip address 192.168.11.x 255.255.255.128 配置管理地址 x范围(2-126)
Switch(config-if-sw0)#vlan-id 2 管理vlan
Switch(config-if-sw0)#exit
Switch(config)#ip route 0.0.0.0 0.0.0.0 192.168.11.1 静态路由,指向管理地址x网关
Switch(config)#enable password level 15 admin 为交换机密码
Switch(config)#igmpsnoop en 打开组播
Switch(config)#exit
Switch#write
Are you sure to override /rfa1/startup (Yes|No)?y
exit
exit
