路由器有6个三层网口GE0-GE5,GE3连接光猫lan(光猫为桥接模式),GE0连接交换机,配置如下。连接在GE0下交换机的电脑无法获取ipv6地址。但是如果使用其他家用傻瓜路由器,同样的连接方式,开启ipv6 native/passthrough 都可以正确获得一个60位前缀,因此光猫无问题。
#
version 7.1.064, Release 0821P11
#
sysname SlyRouter
#
clock timezone Beijing add 08:00:00
clock protocol ntp
#
wlan global-configuration
#
security-zone intra-zone default permit
#
dialer-group 4 rule ip permit
#
nat alg h323
nat alg ils
nat alg mgcp
nat alg nbt
nat alg rsh
nat alg sccp
nat alg sip
nat alg sqlnet
nat alg tftp
nat alg xdmcp
#
dhcp enable
dhcp server always-broadcast
#
dns proxy enable
#
system-working-mode standard
password-recovery enable
#
vlan 1
#
dhcp server ip-pool GigabitEthernet0/0
gateway-list 10.28.0.1
network 10.28.0.0 mask 255.255.255.0
address range 10.28.0.101 10.28.0.200
dns-list 10.28.0.1
#
dhcp server ip-pool gigabitethernet0/1
gateway-list 10.28.1.1
network 10.28.1.0 mask 255.255.255.0
address range 10.28.1.101 10.28.1.200
dns-list 10.28.1.1
#
ipv6 dhcp pool slypool
option-group 1
#
controller Cellular0/0
#
interface Dialer3
mtu 1492
ppp chap password cipher $c$3$vGSdC5n8D1UDzqQNjCfKsdO3pSAgQ/48Aw==
ppp chap user SL10012046@E
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user SL10012046@E password cipher $c$3$Rz99HEepvjJX4eNVVbYVTGAa/ZEkzzBBfg==
dialer bundle enable
dialer-group 4
dialer timer idle 0
dialer timer autodial 5
ip address ppp-negotiate
tcp mss 1280
nat outbound
ipv6 address auto link-local
ipv6 dhcp client stateful prefix 1 rapid-commit option-group 1
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
description LAN-interface
ip address 10.28.0.1 255.255.255.0
tcp mss 1280
ipv6 dhcp select server
ipv6 dhcp server apply pool slypool
ipv6 address 1 1::1/64
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface GigabitEthernet0/1
port link-mode route
description LAN-interface
ip address 10.28.1.1 255.255.255.0
tcp mss 1280
#
interface GigabitEthernet0/2
port link-mode route
combo enable copper
#
interface GigabitEthernet0/3
port link-mode route
description Single_Line1
combo enable copper
pppoe-client dial-bundle-number 3
#
interface GigabitEthernet0/4
port link-mode route
#
interface GigabitEthernet0/5
port link-mode route
#
scheduler logfile size 16
#
line class console
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ip route-static 0.0.0.0 0 Dialer3
ipv6 route-static :: 0 Dialer3
#
info-center loghost 127.0.0.1 port 3301
info-center source CFGLOG loghost level informational
#
performance-management
#
ntp-service enable
#
password-control enable
undo password-control aging enable
undo password-control history enable
password-control length 6
password-control login-attempt 3 exceed lock-time 10
password-control update-interval 0
password-control login idle-time 0
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
service-type telnet http
authorization-attribute user-role network-admin
#
ip http enable
web new-style
#
wlan ap-group default-group
vlan 1
#
return
#
version 7.1.064, Release 0821P11
#
sysname SlyRouter
#
clock timezone Beijing add 08:00:00
clock protocol ntp
#
wlan global-configuration
#
security-zone intra-zone default permit
#
dialer-group 4 rule ip permit
#
nat alg h323
nat alg ils
nat alg mgcp
nat alg nbt
nat alg rsh
nat alg sccp
nat alg sip
nat alg sqlnet
nat alg tftp
nat alg xdmcp
#
dhcp enable
dhcp server always-broadcast
#
dns proxy enable
#
system-working-mode standard
password-recovery enable
#
vlan 1
#
dhcp server ip-pool GigabitEthernet0/0
gateway-list 10.28.0.1
network 10.28.0.0 mask 255.255.255.0
address range 10.28.0.101 10.28.0.200
dns-list 10.28.0.1
#
dhcp server ip-pool gigabitethernet0/1
gateway-list 10.28.1.1
network 10.28.1.0 mask 255.255.255.0
address range 10.28.1.101 10.28.1.200
dns-list 10.28.1.1
#
ipv6 dhcp pool slypool
option-group 1
#
controller Cellular0/0
#
interface Dialer3
mtu 1492
ppp chap password cipher $c$3$vGSdC5n8D1UDzqQNjCfKsdO3pSAgQ/48Aw==
ppp chap user SL10012046@E
ppp ipcp dns admit-any
ppp ipcp dns request
ppp pap local-user SL10012046@E password cipher $c$3$Rz99HEepvjJX4eNVVbYVTGAa/ZEkzzBBfg==
dialer bundle enable
dialer-group 4
dialer timer idle 0
dialer timer autodial 5
ip address ppp-negotiate
tcp mss 1280
nat outbound
ipv6 address auto link-local
ipv6 dhcp client stateful prefix 1 rapid-commit option-group 1
#
interface NULL0
#
interface GigabitEthernet0/0
port link-mode route
description LAN-interface
ip address 10.28.0.1 255.255.255.0
tcp mss 1280
ipv6 dhcp select server
ipv6 dhcp server apply pool slypool
ipv6 address 1 1::1/64
ipv6 nd autoconfig other-flag
undo ipv6 nd ra halt
#
interface GigabitEthernet0/1
port link-mode route
description LAN-interface
ip address 10.28.1.1 255.255.255.0
tcp mss 1280
#
interface GigabitEthernet0/2
port link-mode route
combo enable copper
#
interface GigabitEthernet0/3
port link-mode route
description Single_Line1
combo enable copper
pppoe-client dial-bundle-number 3
#
interface GigabitEthernet0/4
port link-mode route
#
interface GigabitEthernet0/5
port link-mode route
#
scheduler logfile size 16
#
line class console
user-role network-admin
#
line class tty
user-role network-operator
#
line class vty
user-role network-operator
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ip route-static 0.0.0.0 0 Dialer3
ipv6 route-static :: 0 Dialer3
#
info-center loghost 127.0.0.1 port 3301
info-center source CFGLOG loghost level informational
#
performance-management
#
ntp-service enable
#
password-control enable
undo password-control aging enable
undo password-control history enable
password-control length 6
password-control login-attempt 3 exceed lock-time 10
password-control update-interval 0
password-control login idle-time 0
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
service-type telnet http
authorization-attribute user-role network-admin
#
ip http enable
web new-style
#
wlan ap-group default-group
vlan 1
#
return
(0)
最佳答案
您好,请知:
如果要作为PPPOE服务器,以下是参考命令:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]local-user weijianing class network
New local user added.
[R1-luser-network-weijianing]password simple weijianing
[R1-luser-network-weijianing]service-type ppp
[R1-luser-network-weijianing]quit
[R1]domain name system
[R1-isp-system]authentication ppp local
[R1-isp-system]quit
[R1]int LoopBack 0
[R1-LoopBack0]ipv6 address 2::1 64
[R1-LoopBack0]quit
[R1]ipv6 prefix 1 1::/64
[R1]int Virtual-Template 1
[R1-Virtual-Template1]ipv6 address 1::1/64
[R1-Virtual-Template1]ppp authentication-mode pap domain system
[R1-Virtual-Template1]remote address pool 1
[R1-Virtual-Template1]quit
[R1]int GigabitEthernet 0/0
[R1-GigabitEthernet0/0]pppoe-server bind virtual-template 1
[R1-GigabitEthernet0/0]quit
如果是要作为客户端进行IPV6拨号,以下是参考命令:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]sysname R1
[R1]dialer-group 1 rule ip permit
[R1]int Dialer 1
[R1-Dialer1]ipv6 address auto
[R1-Dialer1]dialer bundle enable
[R1-Dialer1]dialer-group 1
[R1-Dialer1]ppp pap local-user ninglihua password simple ninglihua
[R1-Dialer1]dialer timer idle 0
[R1-Dialer1]quit
[R1]int gi 0/0
[R1-GigabitEthernet0/0]ipv6 address 1::1 64
[R1-GigabitEthernet0/0]quit
[R1]int gi 0/1
[R1-GigabitEthernet0/1]pppoe-client dial-bundle-number 1
[R1-GigabitEthernet0/1]quit
[R1]ipv6 route-static :: 0 Dialer 1
(0)
您好,我的帖子中就是这么配置的,您可以具体看一下
您好,参考ICG3000的ipv6配置
(0)
您好,参考了,上面已经按照参考的写的,但是就是不工作
您好,参考了,上面已经按照参考的写的,但是就是不工作
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
您好,我的帖子中就是这么配置的,您可以具体看一下