中文网站
  Advanced Search
Read the latest Blogs from IT professionals in the field. Read and write community created documents. Need IT help? Ask our staff. Connect with your peers. Check our Tech Shop for posters, books and software tools. Home

5.5.3.5 Linux(2)

Using network-scripts with Redhat

Initially, IPv6 functionality should be enabled on the RedHat host (see Appendix B). Furthermore, in order to set up a 6to4 tunnel, one has to follow the next steps:

1. In the /etc/syconfig/network-scripts/ifcfg-eth0 file include:

IPV6TO4INIT=yes

which forces the system to initialize a tunnel (sit1) using the configuration defined in the file "ifcfg-sit1".

2. Modify the /etc/sysconfig/ifcfg-sit1 file as follows:

The above settings will create a 6to4 tunnel pointing to a 6to4 relay router. In the above configuration, x.y.z.w is the IPv4 address of a 6to4 relay router and 2002:<IPv4 address as hex>::<IPv4 address as hex> is the local 6to4 IPv6 address of the host. Note that the IPv6 address, e.g. 2002:aabb:ccdd::aabb:ccdd, is followed by a "/0" suffix in order to force the creation of a default route for all the 6to4 traffic through the sit1 tunnel.

In the file /etc/sysconfig/network include the following line:

IPV6_GATEWAYDEV=sit1

This sets the 6to4 tunnel interface sit1 as the default gateway for all IPv6 traffic.