j0upkl,msr5660配置ipv6地址
问题描述:
现在是msr5660路由器接入运营商的ipv4网络,想要给我们的某台web服务器配置一个IPv6的地址,让其他ipv6的用户可以访问到这个web。实现ipv4的用户通过ipv4地址访问web,ipv6用户通过ipv4访问web。需要如何配置?
组网及组网描述:
运营商网络-->H3C 路由器MSR5660--->华为防火墙(透明部署)-->H3C 7506E交换机(起网关)--> 华为交换机(二层)-->web服务器
7小时前提问您好,做双栈就可以了
15? AFT典型配置举例
1.15.1? IPv6网络访问IPv4 Internet配置举例
1. 组网需求
某公司将网络升级到了IPv6,但是仍然希望内网
为满足上述需求,本例中实现方式如下:
· 使用NAT64前缀与IPv4网络中的主机地址组合成为IPv6地址,此IPv6地址将与IPv4 Internet内的主机建立相应的映射关系,IPv6网络中的主机访问该IPv6地址即可实现对IPv4 Internet的访问。报文到达Device后,设备将根据NAT64前缀将该目的IPv6地址转换为对应的IPv4地址。
· 使用IPv6到IPv4源地址动态转换策略将IPv6网络到IPv4网络报文的源地址转换为IPv4地址10.1.1.1、10.1.1.2或10.1.1.3。
2. 组网图
图1-7 IPv6网络访问IPv4 Internet配置组网图
?
3. 配置步骤
# 按照组网图配置各接口的IP地址,具体配置过程略。
# 配置地址组0包含三个IPv4地址10.1.1.1、10.1.1.2和10.1.1.3。
<Device> system-view
[Device] aft address-group 0
[Device-aft-address-group-0] address 10.1.1.1 10.1.1.3
[Device-aft-address-group-0] quit
# 配置IPv6 ACL
[Device] acl ipv6 basic
[Device-acl-ipv6-basic-
[Device-acl-ipv6-basic-
[Device-acl-ipv6-basic-
# 配置IPv6到IPv4的源地址动态转换策略,将匹配ACL
[Device] aft v6tov4 source acl ipv6 number
# 配置NAT64前缀为
[Device] aft prefix-nat64
# 在IPv6侧接口GigabitEthernet1/0/1开启AFT功能。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] aft enable
[Device-GigabitEthernet1/0/1] quit
# 在IPv4侧接口GigabitEthernet1/0/2开启AFT功能。
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] aft enable
[Device-GigabitEthernet1/0/2] quit
4. 验证配置
# 以上配置完成后,检查IPv6 Host与IPv4 Server的连通性。以IPv6 host A ping IPv4 server A为例:
D:\>ping
Pinging
Reply from
Reply from
Reply from
Reply from
# 通过查看AFT会话,可以看到创建了一个IPv6会话和IPv4会话,分别对应转换前和转换后的报文。
[Device] display aft session ipv6 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/2
State: ICMPV6_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 3
Responder->Initiator:??????????? 4 packets??????? 3
Total sessions found: 1
[Device] display aft session ipv4 verbose
Initiator:
? Source????? IP/port: 10.1.1.1/1025
? Destination IP/port:
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port: 10.1.1.1/0
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/2
State: ICMP_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 240 bytes
Responder->Initiator:??????????? 4 packets??????? 240 bytes
Total sessions found: 1
1.15.2? IPv4 Internet访问IPv6网络内部服务器配置举例
1. 组网需求
某公司将网络升级到了IPv6,此时Internet仍然是IPv4网络。该公司希望内部的FTP服务器能够继续为IPv4 Internet的用户提供服务。该公司拥有的IPv4地址为10.1.1.1。
为满足上述要求,本例实现方式如下:
· 使用IPv6侧服务器配置将IPv6内部服务器的地址及端口映射为IPv4地址及端口,Device收到来自IPv4 Internet的报文后,根据该配置策略将报文IPv4目的地址转换为IPv6地址;
· 使用NAT64前缀将报文源IPv4地址转换为IPv6地址。
2. 组网图
图1-8 IPv4 Internet访问IPv6网络内部服务器配置组网图
?
3. 配置步骤
# 按照组网图配置各接口的IP地址,具体配置过程略。
# 配置IPv6侧服务器对应的IPv4地址及端口号。IPv4网络内用户通过访问该IPv4地址及端口即可访问IPv6服务器。
<Device> system-view
[Device] aft v6server protocol tcp 10.1.1.1
# 报文的源地址将根据配置的NAT64前缀转换为IPv6地址。
[Device] aft prefix-nat64
# 在IPv4侧接口GigabitEthernet1/0/1开启AFT。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] aft enable
[Device-GigabitEthernet1/0/1] quit
# 在IPv6侧接口GigabitEthernet1/0/2开启AFT。
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] aft enable
[Device-GigabitEthernet1/0/2] quit
4. 验证配置
# 以上配置完成后,IPv4 Host可以通过FTP协议访问IPv6 FTP Server。
# 通过查看AFT会话,可以看到创建了一个IPv4会话和IPv6会话,分别对应转换前和转换后的报文。
[Device] display aft session ipv4 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port: 10.1.1.1/
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port: 10.1.1.1/
? Destination IP/port:
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/2
State: TCP_ESTABLISHED
Application: FTP
Start time:
Initiator->Responder:??????????? 3 packets??????? 124 bytes
Responder->Initiator:??????????? 2 packets??????? 108 bytes
Total sessions found: 1
[Device] display aft session ipv6 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/2
State: TCP_ESTABLISHED
Application: FTP
Start time:
Initiator->Responder:??????????? 3 packets??????? 184 bytes
Responder->Initiator:??????????? 2 packets??????? 148 bytes
Total sessions found: 1
1.15.3? IPv4网络和IPv6网络互访配置举例
1. 组网需求
某公司内部同时部署了IPv4网络和IPv6网络,并且希望IPv4网络和IPv6网络能够互相访问。
为满足上述需求,本例中使用如下方式实现:
· 为IPv6网络分配一个IVI前缀和IPv4网段,IPv6网络中所有IPv6主机的地址均配置为由IVI前缀和IPv4网段中地址组合而成的IPv6地址。
· 为IPv4网络分配一个NAT64前缀,IPv4网络主动访问IPv6网络时,IPv4源地址使用NAT64前缀转换为IPv6地址;IPv6网络主动访问IPv4网络时,目的地址使用NAT64前缀和IPv4地址组合成的IPv6地址。
2. 组网图
图1-9 IPv4网络和IPv6网络互访配置组网图
?
3. 配置步骤
# 按照组网图配置各接口的IP地址,其中IPv6网络中的主机使用的IPv6地址根据IVI前缀
# 配置ACL
<Device> system-view
[Device] acl basic
[Device-acl-ipv4-basic-
[Device-acl-ipv4-basic-
# 配置NAT64前缀,用于进行IPv4到IPv6的源地址转换和IPv6到IPv4的目的地址转换。
[Device] aft prefix-nat64
# 配置IVI前缀,用于进行IPv6到IPv4源地址转换,且在IPv4到IPv6动态目的地址转换策略中引用该前缀。
[Device] aft prefix-ivi
# 配置IPv4到IPv6动态目的地址转换策略,IPv4到IPv6报文的目的IPv4地址转换为IPv6地址。
[Device] aft v4tov6 destination acl number
# 在IPv4侧接口GigabitEthernet1/0/1开启AFT。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] aft enable
[Device-GigabitEthernet1/0/1] quit
# 在IPv6侧接口GigabitEthernet1/0/2开启AFT。
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] aft enable
[Device-GigabitEthernet1/0/2] quit
4. 验证配置
# 以上配置完成后,IPv4 host与IPv6 host可以互通。以IPv6 host A ping IPv4 host A为例:
D:\>ping
Pinging
Reply from
Reply from
Reply from
Reply from
# 通过查看AFT会话,可以看到创建了一个IPv6会话和IPv4会话,分别对应转换前和转换后的报文。显示内容如下:
[Device] display aft session ipv6 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/2
Responder:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/1
State: ICMPV6_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 3
Responder->Initiator:??????????? 4 packets??????? 3
Total sessions found: 1
[Device] display aft session ipv4 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port: 10.1.1.1/
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/2
Responder:
? Source????? IP/port: 10.1.1.1/1025
? Destination IP/port:
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/1
State: ICMP_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 240 bytes
Responder->Initiator:??????????? 4 packets??????? 240 bytes
Total sessions found: 1
1.15.4? IPv4网络访问IPv6 Internet中的服务器配置举例
1. 组网需求
Internet已经升级到了IPv6,但是某公司内部网络仍然是IPv4网络。而该公司内部网络的10.1.1.0/24网段的用户仍需要访问IPv6 Internet中的服务器,其他用户不能访问。
为满足上述要求,本例中使用如下方式实现:
· 使用IPv4到IPv6源地址动态地址转换策略,将IPv4报文的源地址转换为IPv6地址。
· 通过IPv6到IPv4的源地址静态转换策略为IPv6 Internet上服务器的IPv6地址指定一个对应的IPv4地址,Device收到发往该IPv4地址的报文时将其转换为对应的IPv6地址。
2. 组网图
图1-10 IPv4网络访问IPv6 Internet中的服务器配置组网图
?
3. 配置步骤
# 按照组网图配置各接口的IP地址,具体配置过程略。
# 配置ACL
<Device> system-view
[Device] acl basic
[Device-acl-ipv4-basic-
[Device-acl-ipv4-basic-
[Device-acl-ipv4-basic-
# 配置NAT64前缀,此前缀将在IPv4到IPv6源地址动态转换策略中被调用,将报文的源地址转换为IPv6地址。
[Device] aft prefix-nat64
# 配置IPv4到IPv6源地址动态转换策略,将匹配ACL
[Device] aft v4tov6 source acl number
# 配置IPv6到IPv4的源地址静态转换策略,用于将报文的目的地址转换为IPv6地址。
[Device] aft v6tov4 source
# 在IPv4侧接口GigabitEthernet1/0/1开启AFT。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] aft enable
[Device-GigabitEthernet1/0/1] quit
# 在IPv6侧接口GigabitEthernet1/0/2开启AFT。
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] aft enable
[Device-GigabitEthernet1/0/2] quit
4. 验证配置
# 以上配置完成后,检查IPv4 host与IPv6 server的连通性。以IPv4 host A ping IPv6 server为例:
D:\>ping
Pinging
Reply from
Reply from
Reply from
Reply from
# 通过查看AFT会话,可以看到创建了一个IPv4会话和IPv6会话,分别对应转换前和转换后的报文。
[Device] display aft session ipv4 verbose
Initiator:
? Source????? IP/port: 10.1.1.1/1025
? Destination IP/port:
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port: 10.1.1.1/0
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: ICMP
? Inbound interface: GigabitEthernet1/0/2
State: ICMP_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 240 bytes
Responder->Initiator:??????????? 4 packets???? ???240 bytes
Total sessions found: 1
[Device] display aft session ipv6 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: IPV6-ICMP(58)
? Inbound interface: GigabitEthernet1/0/2
State: ICMPV6_REPLY
Application: OTHER
Start time:
Initiator->Responder:??????????? 4 packets??????? 3
Responder->Initiator:??????????? 4 packets??????? 3
Total sessions found: 1
1.15.5? IPv6 Internet访问IPv4网络配置举例
1. 组网需求
Internet已经升级到了IPv6,但是某公司内部网络仍然是IPv4网络。而该公司仍希望为IPv6 Internet内的用户提供FTP服务。该公司访问IPv6 Internet使用的IPv6地址为
为满足上述要求,实现方式如下:
· 通过IPv4到IPv6源地址静态转换策略,为IPv4网络中的FTP服务器地址指定一个对应的IPv6地址,IPv6 Internet中的主机通过访问该IPv6地址可以访问IPv4网络中的FTP服务器。Device收到发往该IPv6地址的报文时将其目的地址转换为对应的IPv4地址。
· 通过IPv6到IPv4源地址动态转换策略,将IPv6 Internet发送过来的IPv6报文源地址转换为IPv4地址30.1.1.1和30.1.1.2。
2. 组网图
图1-11 IPv6 Internet访问IPv4网络配置组网图
?
3. 配置步骤
# 按照组网图配置各接口的IP地址,具体配置过程略。
# 配置IPv4到IPv6源地址静态转换策略,手动指定IPv4与IPv6地址一一对应的转换关系,此策略可将报文的目的地址转换为对应的IPv4地址。
<Device> system-view
[Device] aft v4tov6 source
# 配置地址组0包含2个IPv4地址:30.1.1.1和30.1.1.2。
[Device] aft address-group 0
[Device-aft-address-group-0] address 30.1.1.1 30.1.1.2
[Device-aft-address-group-0] quit
# 配置IPv6 ACL
[Device] acl ipv6 basic
[Device-acl-ipv6-basic-
[Device-acl-ipv6-basic-
# 配置IPv6到IPv4的源地址动态转换策略,将匹配ACL
[Device] aft v6tov4 source acl ipv6 number
# 在IPv6侧接口GigabitEthernet1/0/1开启AFT。
[Device] interface gigabitethernet 1/0/1
[Device-GigabitEthernet1/0/1] aft enable
[Device-GigabitEthernet1/0/1] quit
# 在IPv4侧接口GigabitEthernet1/0/2开启AFT。
[Device] interface gigabitethernet 1/0/2
[Device-GigabitEthernet1/0/2] aft enable
[Device-GigabitEthernet1/0/2] quit
4. 验证配置
# 以上配置完成后,检查IPv6 host与IPv4 FTP server的连通性。以IPv6 host A ping IPv4 FTP server为例:
D:\>ping
Pinging
Reply from
Reply from
Reply from
Reply from
# 通过查看AFT会话,可以看到创建了一个IPv6会话和IPv4会话,分别对应转换前和转换后的报文。
[Device] display aft session ipv6 verbose
Initiator:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port:
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/2
State: TCP_ESTABLISHED
Application: FTP
Start time:
Initiator->Responder:??????????? 3 packets??????? 184 bytes
Responder->Initiator:??????????? 2 packets??????? 148 bytes
Total sessions found: 1
[Device] display aft session ipv4 verbose
Initiator:
? Source????? IP/port: 30.1.1.1/11025
? Destination IP/port:
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/1
Responder:
? Source????? IP/port:
? Destination IP/port: 30.1.1.1/11025
? DS-Lite tunnel peer: -
? VPN instance/VLAN ID/Inline ID: -/-/-
? Protocol: TCP(6)
? Inbound interface: GigabitEthernet1/0/2
State: TCP_ESTABLISHED
Application: FTP
Start time:
Initiator->Responder:??????????? 3 packets??????? 124 bytes
Responder->Initiator:??????????? 2 packets??????? 108 bytes
Total sessions found: 1
7小时前回答暂无
这个服务的地址应该是我ipv4的公网地址还是内网地址呢?
6小时前回答暂无
你正在,msr5660配置ipv6地址