Difference between revisions of "IPv6 Kernel: IPv6 entri di /proc/net/"
Onnowpurbo (talk | contribs) (New page: 11.4. IPv6-related entries in /proc/net/ In /proc/net there are several read-only entries available. You cannot retrieve information using “sysctl” here, so use e.g. “cat”. 11.4.1...) |
Onnowpurbo (talk | contribs) |
||
Line 2: | Line 2: | ||
In /proc/net there are several read-only entries available. You cannot retrieve information using “sysctl” here, so use e.g. “cat”. | In /proc/net there are several read-only entries available. You cannot retrieve information using “sysctl” here, so use e.g. “cat”. | ||
+ | |||
11.4.1. if_inet6 | 11.4.1. if_inet6 | ||
Line 8: | Line 9: | ||
Here all configured IPv6 addresses are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/addrconf.c” for more). | Here all configured IPv6 addresses are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/addrconf.c” for more). | ||
− | # cat /proc/net/if_inet6 | + | # cat /proc/net/if_inet6 |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 00000000000000000000000000000001 01 80 10 80 lo | |
+ | +------------------------------+ ++ ++ ++ ++ ++ | ||
+ | | | | | | | | ||
+ | 1 2 3 4 5 6 | ||
− | + | * IPv6 address displayed in 32 hexadecimal chars without colons as separator | |
+ | * Netlink device number (interface index) in hexadecimal (see “ip addr” , too) | ||
+ | * Prefix length in hexadecimal | ||
+ | * Scope value (see kernel source “ include/net/ipv6.h” and “net/ipv6/addrconf.c” for more) | ||
+ | * Interface flags (see “include/linux/rtnetlink.h” and “net/ipv6/addrconf.c” for more) | ||
+ | * Device name | ||
11.4.2. ipv6_route | 11.4.2. ipv6_route | ||
Line 32: | Line 29: | ||
Here all configured IPv6 routes are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/route.c” for more). | Here all configured IPv6 routes are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/route.c” for more). | ||
− | # cat /proc/net/ipv6_route | + | # cat /proc/net/ipv6_route |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | 00000000000000000000000000000000 00 00000000000000000000000000000000 00 | |
+ | +------------------------------+ ++ +------------------------------+ ++ | ||
+ | | | | | | ||
+ | 1 2 3 4 | ||
− | + | ¬ 00000000000000000000000000000000 ffffffff 00000001 00000001 00200200 lo | |
+ | ¬ +------------------------------+ +------+ +------+ +------+ +------+ ++ | ||
+ | ¬ | | | | | | | ||
+ | ¬ 5 6 7 8 9 10 | ||
− | |||
− | + | * IPv6 destination network displayed in 32 hexadecimal chars without colons as separator | |
− | + | * IPv6 destination prefix length in hexadecimal | |
− | + | * IPv6 source network displayed in 32 hexadecimal chars without colons as separator | |
+ | * IPv6 source prefix length in hexadecimal | ||
+ | * IPv6 next hop displayed in 32 hexadecimal chars without colons as separator | ||
+ | * Metric in hexadecimal | ||
+ | * Reference counter | ||
+ | * Use counter | ||
+ | * Flags | ||
+ | * Device name | ||
11.4.3. sockstat6 | 11.4.3. sockstat6 | ||
Line 69: | Line 59: | ||
Statistics about used IPv6 sockets. Example: | Statistics about used IPv6 sockets. Example: | ||
− | # cat /proc/net/sockstat6 | + | # cat /proc/net/sockstat6 |
− | TCP6: inuse | + | |
− | UDP6: inuse | + | TCP6: inuse 11 |
− | RAW6: inuse | + | UDP6: inuse 3 |
− | FRAG6: inuse 0 memory 0 | + | UDPLITE6: inuse 0 |
+ | RAW6: inuse 0 | ||
+ | FRAG6: inuse 0 memory 0 | ||
11.4.4. tcp6 | 11.4.4. tcp6 | ||
To be filled. | To be filled. | ||
+ | |||
11.4.5. udp6 | 11.4.5. udp6 | ||
To be filled. | To be filled. | ||
+ | |||
11.4.6. igmp6 | 11.4.6. igmp6 | ||
To be filled. | To be filled. | ||
+ | |||
11.4.7. raw6 | 11.4.7. raw6 | ||
To be filled. | To be filled. | ||
+ | |||
11.4.8. ip6_flowlabel | 11.4.8. ip6_flowlabel | ||
To be filled. | To be filled. | ||
+ | |||
11.4.9. rt6_stats | 11.4.9. rt6_stats | ||
To be filled. | To be filled. | ||
+ | |||
11.4.10. snmp6 | 11.4.10. snmp6 | ||
Line 98: | Line 96: | ||
SNMP statistics, can be retrieved via SNMP server and related MIB table by network management software. | SNMP statistics, can be retrieved via SNMP server and related MIB table by network management software. | ||
+ | |||
11.4.11. ip6_tables_names | 11.4.11. ip6_tables_names | ||
Available netfilter6 tables | Available netfilter6 tables |
Revision as of 16:37, 2 July 2013
11.4. IPv6-related entries in /proc/net/
In /proc/net there are several read-only entries available. You cannot retrieve information using “sysctl” here, so use e.g. “cat”.
11.4.1. if_inet6
Type: One line per addresss containing multiple values
Here all configured IPv6 addresses are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/addrconf.c” for more).
# cat /proc/net/if_inet6
00000000000000000000000000000001 01 80 10 80 lo +------------------------------+ ++ ++ ++ ++ ++ | | | | | | 1 2 3 4 5 6
- IPv6 address displayed in 32 hexadecimal chars without colons as separator
- Netlink device number (interface index) in hexadecimal (see “ip addr” , too)
- Prefix length in hexadecimal
- Scope value (see kernel source “ include/net/ipv6.h” and “net/ipv6/addrconf.c” for more)
- Interface flags (see “include/linux/rtnetlink.h” and “net/ipv6/addrconf.c” for more)
- Device name
11.4.2. ipv6_route
Type: One line per route containing multiple values
Here all configured IPv6 routes are shown in a special format. The example displays for loopback interface only. The meaning is shown below (see “net/ipv6/route.c” for more).
# cat /proc/net/ipv6_route
00000000000000000000000000000000 00 00000000000000000000000000000000 00 +------------------------------+ ++ +------------------------------+ ++ | | | | 1 2 3 4
¬ 00000000000000000000000000000000 ffffffff 00000001 00000001 00200200 lo ¬ +------------------------------+ +------+ +------+ +------+ +------+ ++ ¬ | | | | | | ¬ 5 6 7 8 9 10
- IPv6 destination network displayed in 32 hexadecimal chars without colons as separator
- IPv6 destination prefix length in hexadecimal
- IPv6 source network displayed in 32 hexadecimal chars without colons as separator
- IPv6 source prefix length in hexadecimal
- IPv6 next hop displayed in 32 hexadecimal chars without colons as separator
- Metric in hexadecimal
- Reference counter
- Use counter
- Flags
- Device name
11.4.3. sockstat6
Type: One line per protocol with description and value
Statistics about used IPv6 sockets. Example:
# cat /proc/net/sockstat6
TCP6: inuse 11 UDP6: inuse 3 UDPLITE6: inuse 0 RAW6: inuse 0 FRAG6: inuse 0 memory 0
11.4.4. tcp6
To be filled.
11.4.5. udp6
To be filled.
11.4.6. igmp6
To be filled.
11.4.7. raw6
To be filled.
11.4.8. ip6_flowlabel
To be filled.
11.4.9. rt6_stats
To be filled.
11.4.10. snmp6
Type: One line per SNMP description and value
SNMP statistics, can be retrieved via SNMP server and related MIB table by network management software.
11.4.11. ip6_tables_names
Available netfilter6 tables