Difference between revisions of "FreeBSD IPv6Basic configuration"

From Teknologisk videncenter
Jump to: navigation, search
m
m
Line 1: Line 1:
 +
=Config=
 
<source lang=cli>
 
<source lang=cli>
 
ipv6_ifconfig_em1="2001:16D8:DD85:4::16/64"
 
ipv6_ifconfig_em1="2001:16D8:DD85:4::16/64"
Line 6: Line 7:
 
inetd_enable="YES"
 
inetd_enable="YES"
 
ipv6_enable="YES"
 
ipv6_enable="YES"
</source lang=cli>
+
</source>
Check af status
+
=Status=
 +
Check af status på IPv6
 
<source lang=cli>
 
<source lang=cli>
 
[root@mars openospfd]#<input>ifconfig em1</input>
 
[root@mars openospfd]#<input>ifconfig em1</input>

Revision as of 08:19, 2 June 2011

Config

ipv6_ifconfig_em1="2001:16D8:DD85:4::16/64"
ipv6_defaultrouter="2001:16D8:DD85:4::20"
keymap="danish.iso"
#Enable ssh
inetd_enable="YES"
ipv6_enable="YES"

Status

Check af status på IPv6

[root@mars openospfd]#<input>ifconfig em1</input>
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:07:e9:40:0a:bf
        inet6 fe80::207:e9ff:fe40:abf%em1 prefixlen 64 scopeid 0x2
        inet 172.16.4.16 netmask 0xffffff00 broadcast 172.16.4.255
        inet6 2001:16d8:dd85:4::16 prefixlen 64
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
[root@mars openospfd]#<input>netstat -r -f inet6</input>
Routing tables

Internet6:
Destination        Gateway            Flags      Netif Expire
::                 localhost          UGRS        lo0 =>
default            2001:16d8:dd85:4:: UGS         em1
localhost          localhost          UHL         lo0
::ffff:0.0.0.0     localhost          UGRS        lo0
2001:16d8:dd85:4:: link#2             UC          em1
2001:16d8:dd85:4:: 00:07:e9:40:0a:bf  UHL         lo0
2001:16d8:dd85:4:: 00:19:e7:51:08:c0  UHLW        em1
fe80::             localhost          UGRS        lo0
fe80::%em0         link#1             UC          em0
fe80::207:e9ff:fe4 00:07:e9:40:0a:be  UHL         lo0
fe80::%em1         link#2             UC          em1
fe80::207:e9ff:fe4 00:07:e9:40:0a:bf  UHL         lo0
fe80::219:e7ff:fe5 00:19:e7:51:08:c0  UHLW        em1
fe80::128c:cfff:fe 10:8c:cf:96:f7:6f  UHLW        em1
fe80::%vr1         link#4             UC          vr1
fe80::250:baff:feb 00:50:ba:b1:85:ca  UHL         lo0
fe80::%lo0         fe80::1%lo0        U           lo0
fe80::1%lo0        link#6             UHL         lo0
ff01:1::           link#1             UC          em0
ff01:2::           link#2             UC          em1
ff01:4::           link#4             UC          vr1
ff01:6::           localhost          UC          lo0
ff02::             localhost          UGRS        lo0
ff02::%em0         link#1             UC          em0
ff02::%em1         link#2             UC          em1
ff02::%vr1         link#4             UC          vr1
ff02::%lo0         localhost          UC          lo0