FreeBSD Configure IPv6 Networking / Static IP…
2009-05-13 15:28:04来源:未知 阅读 ()
Q.How do I configure
[url=javascript:;]IPv6[/url]
networking under
[url=javascript:;]FreeBSD[/url]
7.x server? How do I assign IPv6 IP address using command line utility?
A.IPv6 (IP next generation) can be easily configured under FreeBSD 7.x or 6.x. You need to know:
a) Adefault router IPv6address such as 2001:470:1e04:5ea::1
b)128 bit IPv6 IPsuch as 2001:470:1e04:5ea::10
FreeBSD IPv6 Network Configuration
Open /etc/rc.conf file, enter:
# vi /etc/rc.conf
WARNING!Following configuration requires that the
[url=javascript:;]kernel[/url]
has been compiled with options INET6 (which is default in FreeBSD 6.x and 7.x)
Append following configurations:
ipv6_enable="YES"
ipv6_ifconfig_fxp0="2001:470:1e04:5ea::10"
ipv6_defaultrouter="2001:470:1e04:5ea::1"
Where,
- ipv6_enable="YES": Turn on IPv6 networking support.
- ipv6_ifconfig_fxp0="2001:470:1e04:5ea::10": Assign an IP address
- ipv6_defaultrouter="2001:470:1e04:5ea::1": assign a default router
Save and close the file. Restart networking, enter:
# /etc/rc.d/netif restart && /etc/rc.d/routing restart
To view newly assigned IP address, enter:
# ifconfig
# ifconfig | grep inet6
How do I test my FreeBSD IPv6 networking connectivity?
Simply use ping6 or traceroute6 commands, enter:
$ ping6 ipv6.google.com
Try traceroute6 command, enter
$ traceroute6 ipv6.google.com
1?: [LOCALHOST] pmtu 1280
1: 2001:5c0:8fff:fffe::a68c 312.051ms
2: no reply
3: if-5-0-1.6bb1.mtt-montreal.ipv6.teleglobe.net 388.794ms
4: if-3-0.mcore3.mtt-montreal.ipv6.teleglobe.net asymm 5 345.947ms
5: if-13-0.mcore4.nqt-newyork.ipv6.teleglobe.net asymm 6 364.053ms
6: 2001:5a0:400:200::1 asymm 7 387.877ms
7: 2001:5a0:400:200::6 381.125ms
8: 2001:5a0:600:100::5 asymm 6 357.572ms
9: 2001:5a0:600::5 asymm 7 363.006ms
10: pr61.iad07.net.google.com asymm 9 386.211ms !A
标签:
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有
下一篇:理解inode
- 提示:bad kernel: arp : 内网IP地址 is on em0 but got rep 2009-05-13
- 问一下:ipfw+natd 如何实现回流端口映射 2009-05-13
- spawn-fcgi启动问题,亟待解决!!! 2009-05-13
- freebsd和linux下添加IP地址和静态路由 2009-05-13
- Carp+IPVS实现热备及负载均衡freebsd 6.4 2009-05-13
IDC资讯: 主机资讯 注册资讯 托管资讯 vps资讯 网站建设
网站运营: 建站经验 策划盈利 搜索优化 网站推广 免费资源
网络编程: Asp.Net编程 Asp编程 Php编程 Xml编程 Access Mssql Mysql 其它
服务器技术: Web服务器 Ftp服务器 Mail服务器 Dns服务器 安全防护
软件技巧: 其它软件 Word Excel Powerpoint Ghost Vista QQ空间 QQ FlashGet 迅雷
网页制作: FrontPages Dreamweaver Javascript css photoshop fireworks Flash