Setup utility for a certain Hikari provider in Japan
This explains a setup that uses the NetworkManager stack to connect to the Internet. Distributions like Fedora Linux use this software to control the network stack.
- External interface
- Dibbler is the only DHCPv6 client suitable for our use. Make sure to put
the Auth Server, Shared Secret, and Password in
/etc/sysconfig/sofutobanku
. Use the following config file with<Internet interface>
substituted for the right values for your configuration.
- Dibbler is the only DHCPv6 client suitable for our use. Make sure to put
the Auth Server, Shared Secret, and Password in
/etc/dibbler/client.conf
:
# Dibbler client config for SoftBank Hikari
duid-type duid-ll
inactive-mode
skip-confirm
log-mode short
log-level 7
script "/etc/softubanku/dibbler.sh"
t1 0
t2 0
reconfigure-accept 1
# You can specify downlink interfaces:
#downlink-prefix-ifaces "eth1", "eth2", "wifi0"
# Or set it off to manually configure them elsewhere:
#downlink-prefix-ifaces "none"
iface "<Internet interface>" {
pd
option dns-server
option domain
option ntp-server
option vendor-spec
}
This section discusses the flow needed to fully set up the Internet connection and have all the information necessary to bring up the SIP connection if desired.
- ICMPv6 Router Solicitation
- Receive MTU information from router (i.e., 1500 bytes; see section 2.4.2.1.5 of FLETS)
- IPv4 DHCP exchange (NTT SIP network)
- Local address for use with SIP
- SIP server address
- Static route for SIP network
- IPv6 DHCP exchange (Internet)
- Request:
- Response:
- Vendor-specific information (NTT):
- MAC address (option 201)
- Hikari denwa telephone number (option 202)
- SIP domain (option 204)
- Route information (option 210; not needed?)
- Identity Assocation for Prefix Delegation (IA-PD)
- Sends a /56 network
- Internal LAN address should be set to PD prefix in this format:
xxxx:xxxx:xxxx:xx00:1111:1111:1111:1111/64
(not on the interface it received the delegation from)
- Vendor-specific information (NTT):
- IPv6 RADIUS exchange (IPv4-in-IPv6 setup)
- Access-Request (1) packet:
- RADIUS Shared Secret and Password is needed
- Contains IA-PD prefix as username
- Format is
xxxx:xxxx:xxxx:xx00:1111:1111:1111:1111
- Format is
- Must contain Vendor Specific Attributes (VSA)
- MAC Address (1)
- Client manufacturer (2)
- Client software version (3)
- Client hardware revision (4)
- CHAP authentication
- Uses CHAP-Challenge (60) attribute
- Password is shared among all clients
- Access-Accept (2) packet:
- Contains Vendor Specific Attributes (VSA)
- IPv4-in-IPv6 tunnel local IPv4 address (204)
- IPv4-in-IPv6 tunnel endpoint IPv6 address (207)
- Other attributes don't appear to be useful
- Contains Vendor Specific Attributes (VSA)
- Access-Request (1) packet:
- IPv6-in-IPv4 tunnel setup
- Use IPv4-in-IPv6 parameters discovered in IPv6 RADIUS exchange
- Must NOT have Tunnel Encapsulation Limit Option
- Requires NetworkManager 1.12 or newer (link to bug)