图一 图二为配置参考
以上图1 图2是参考文件 图三是 给我们的IP地址和 OSPF地址
以下是目前 MSR 26-00的配置 请问要怎么改
<H3C>dis cu # version 5.20, Release 2514P14 # sysname H3C # domain default enable system # dns proxy enable # telnet server enable # dar p2p signature-file flash:/p2p_default.mtd # ndp enable # ntdp enable # cluster enable # port-security enable # password-recovery enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # dhcp server ip-pool vlan1 extended network ip range 192.168.1.2 192.168.1.254 network mask 255.255.255.0 gateway-list 192.168.1.1 dns-list 192.168.1.1 # user-group system group-attribute allow-guest # local-user admin password cipher $c$3$40gC1cxf/wIJNa1ufFPJsjKAof+QP5aV authorization-attribute level 3 service-type telnet service-type web # cwmp undo cwmp enable # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp tcp mss 1024 # interface NULL0 # interface Vlan-interface1 ip address 192.168.1.1 255.255.255.0 tcp mss 1024 dhcp server apply ip-pool vlan1 # interface GigabitEthernet0/0 port link-mode route tcp mss 1024 # interface GigabitEthernet0/1 port link-mode route tcp mss 1024 # interface GigabitEthernet0/2 port link-mode bridge # interface GigabitEthernet0/3 port link-mode bridge # interface GigabitEthernet0/4 port link-mode bridge # interface GigabitEthernet0/5 port link-mode bridge # interface GigabitEthernet0/6 port link-mode bridge # interface GigabitEthernet0/7 port link-mode bridge # interface GigabitEthernet0/8 ---- More ---- #Jan 1 00:06:15:884 2013 H3C SHELL/4/LOGIN: Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.1<hh3cLogIn>:admi port link-mode bridge # interface GigabitEthernet0/9 port link-mode bridge # dhcp enable # load xml-configuration # load tr069-configuration # user-interface tty 12 user-interface aux 0 user-interface vty 0 4 authentication-mode scheme # return <H3C> #Jan 1 00:17:21:759 2013 H3C SHELL/4/LOGOUT: Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.2<hh3cLogOut>:admin logout from Web #Jan 1 00:23:08:769 2013 H3C SHELL/4/LOGOUT: Trap 1.3.6.1.4.1.25506.2.2.1.1.3.0.2<hh3cLogOut>:admin logout from VTY %Jan 1 00:23:08:770 2013 H3C SHELL/5/SHELL_LOGOUT: admin logged out from 192.16 8.1.1. The connection was closed by the remote host! <H3C> <H3C> <H3C>dis cu # version 5.20, Release 2514P14 # sysname H3C # domain default enable system # dns proxy enable # telnet server enable # dar p2p signature-file flash:/p2p_default.mtd # ndp enable # ntdp enable # cluster enable # port-security enable # password-recovery enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # dhcp server ip-pool vlan1 extended network ip range 192.168.1.2 192.168.1.254 network mask 255.255.255.0 gateway-list 192.168.1.1 dns-list 192.168.1.1 # user-group system group-attribute allow-guest # local-user admin password cipher $c$3$40gC1cxf/wIJNa1ufFPJsjKAof+QP5aV authorization-attribute level 3 service-type telnet service-type web # cwmp undo cwmp enable # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp tcp mss 1024 # interface NULL0 # interface Vlan-interface1 ip address 192.168.1.1 255.255.255.0 tcp mss 1024 dhcp server apply ip-pool vlan1 # interface GigabitEthernet0/0 port link-mode route tcp mss 1024 # interface GigabitEthernet0/1 port link-mode route tcp mss 1024 # interface GigabitEthernet0/2 port link-mode bridge # interface GigabitEthernet0/3 port link-mode bridge # interface GigabitEthernet0/4 port link-mode bridge # interface GigabitEthernet0/5 port link-mode bridge # interface GigabitEthernet0/6 port link-mode bridge # interface GigabitEthernet0/7 port link-mode bridge # interface GigabitEthernet0/8 port link-mode bridge # interface GigabitEthernet0/9 port link-mode bridge # dhcp enable # load xml-configuration # load tr069-configuration # user-interface tty 12 user-interface aux 0 user-interface vty 0 4 authentication-mode scheme # return
(0)
最佳答案
两台都是V5平台的设备,配置上是一样的,只是接口号要换一下,还有把接口下的IP换成你需要改成的IP地址,其他东西都不需要边,命令也都没有变化。
#
interface Ethernet0/0 //换成GigabitEthernet 0/0
port link-mode route
ip address 182.16.100.201 255.255.255.248 //换成对应的地址
#
interface Ethernet0/1 //换成GigabitEthernet 0/1
port link-mode route
ip address 17.169.100.102 255.255.255.252 //换成对应的地址
#
interface NULL0
#
ospf 1
area 0.0.0.12 //看你之前MSR20配置,是区域51,但是给出的IP规划是区域12,根据你实际的情况配置
network 182.16.100.200 0.0.0.7 //把G0/0和G0/1的地址发布进来就可以了
network 17.169.100.100 0.0.0.3
(0)
你这个配置看着太乱了
16.169.105.25和 16.169.105.26应该是分别配置两台路由器三层接口上的,并且需要在ospf areas 12里面通告该网段的路由。
172.160.110.49到 172.160.110.54应该是内网地址段,可以配置DHCP。
关于这款设备ospf配置可以参考:
http://www.h3c.com/cn/d_201708/1024886_30005_0.htm#_Toc491116235
(0)
这是之前MSR20-20的配置 现在是设备和地址都换了 换成新的了 不会配置
# version 5.20, Release 2311, Basic
# sysname H3C
# domain default enable system
# dns proxy enable
# telnet server enable
# dar p2p signature-file cfa0:/p2p_default.mtd
# port-security enable
# vlan 1
# domain system access-limit disable state active idle-cut disable self-service-url disable
# user-group system group-attribute allow-guest
# local-user admin password cipher $c$3$bWCdFR5k16955j8YqDhV8CQbWoeDt20k authorization-attribute level 3 service-type telnet service-type web
# interface Aux0 async mode flow link-protocol ppp
# interface Cellular0/0 async mode protocol link-protocol ppp
# interface Ethernet0/0 port link-mode route ip address 182.16.100.201 255.255.255.248
# interface Ethernet0/1 port link-mode route ip address 17.169.100.102 255.255.255.252
# interface NULL0 # ospf 1 area 0.0.0.51 network 182.16.100.200 0.0.0.7 network 17.169.100.100 0.0.0.3
# ip route-static 0.0.0.0 0.0.0.0 Ethernet0/1 17.169.100.101
# load xml-configuration # user-interface con 0 user-interface tty 13 user-interface aux 0 user-interface vty 0 4 authentication-mode scheme
# return
(0)
那你直接在路由器连接外网的接口上配置ip地址16.169.105.26 [h3c]int g0/0 [h3c-int g0/0]ip add 16.169.105.26 (假如你的外网口是g0/0) 然后保证对端地址也正常配置
# version 5.20, Release 2311, Basic # sysname H3C # domain default enable system # dns proxy enable # telnet server enable # dar p2p signature-file cfa0:/p2p_default.mtd # port-security enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # user-group system group-attribute allow-guest # local-user admin password cipher $c$3$bWCdFR5k16955j8YqDhV8CQbWoeDt20k authorization-attribute level 3 service-type telnet service-type web # interface Aux0 async mode flow link-protocol ppp # interface Cellular0/0 async mode protocol link-protocol ppp # interface Ethernet0/0 port link-mode route ip address 182.16.100.241 255.255.255.248 # interface Ethernet0/1 port link-mode route ip address 17.169.100.122 255.255.255.252 # interface NULL0 # ospf 1 area 0.0.0.51 network 17.169.100.120 0.0.0.3 network 182.16.100.240 0.0.0.7 # ip route-static 0.0.0.0 0.0.0.0 Ethernet0/1 17.169.100.121 # load xml-configuration # user-interface con 0 user-interface tty 13 user-interface aux 0 user-interface vty 0 4 authentication-mode scheme # return
ospf area 51 医保中心广域网IP TO 医院(药店)端广域网IP /30 17.169.100.121 TO 17.169.100.122 255.255.255.252 医院(药店)端路由器IP TO 医院端前置机IP /29 182.16.100.241 TO 182.16.100.246 255.255.255.248
我看Ethernet0/0 和 Ethernet0/1都是三层口,不知道那个是连接外网的 直接 [h3c]int e 0/0 [h3c-int e 0/0 ]ip add x.x.x.x x.x.x.x
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明