Hi,
i have been trying to setup MAP-T on my Wireless router, R6300-v2.
The Firmware version that i'm using is: "OpenWrt 18.06.2"
the primary porpose of this this MAP-T configuration is to do a tcpdump on the outside/egress interface of the CE and check the content of the packet.
I did setup a WAN6 interface facing "WAN" and "WAN_MAP" on the CE.
I have two issues/concerns with my setup:
- "proto": "none"
- "WAN_MAP" interface in the web interface shows " Error: Network device is not present"
Issue-1:
The following is the config on the router using CLI, please compare the "proto" output. One output says "proto is map" and other says "none"
root@OpenWrt:/etc# ifstatus wan_map
{
"up": false,
"pending": false,
"available": false,
"autostart": true,
"dynamic": false,
"proto": "none",
"data": {
},
"errors": [
{
"subsystem": "interface",
"code": "NO_DEVICE"
}
]
}
config interface 'wan_map'
option proto 'map'
option peeraddr '2001:d810:0000:1111::/64'
option ipaddr '101.100.1.0'
option ip4prefixlen '24'
option ip6prefix '2001:d810:00::'
option ip6prefixlen '40'
option ealen '16'
option psidlen '8'
option offset '6'
list tunlink 'wan6'
option type 'map-t'
Issue-2:: Error: Network device is not present"
Please see the snapshot below:
Please help check me if i'm doing anything wrong here.
FYI, the "/etc/config/network" output is attached below:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd75:fba4:4160::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option dns '75.75.75.75 75.75.76.76'
config interface 'wan'
option proto 'static'
option ifname 'eth0.2'
option ipaddr '10.0.0.4'
option netmask '255.255.255.0'
option gateway '10.0.0.1'
option broadcast '10.0.0.255'
option dns '75.75.75.75'
config device 'wan_dev'
option name 'eth0.2'
option macaddr '28:C6:8E:8B:7E:B5'
config interface 'wan6'
option proto 'static'
option ip6addr '2001:2001:2001:2001::2/64'
option ifname 'eth0.2'
option ip6gw 'fe80::1'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 5t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5t'
config interface 'wan_map'
option proto 'map'
option peeraddr '2001:d810:0000:1111::/64'
option ipaddr '101.100.1.0'
option ip4prefixlen '24'
option ip6prefix '2001:d810:00::'
option ip6prefixlen '40'
option ealen '16'
option psidlen '8'
option offset '6'
list tunlink 'wan6'
option type 'map-t'
FYI, the "ubus call network.interface dump" output is attached below:
root@OpenWrt:/# ubus call network.interface dump
{
"interface": [
{
"interface": "lan",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 13885,
"l3_device": "br-lan",
"proto": "static",
"device": "br-lan",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "192.168.1.1",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
"75.75.75.75",
"75.75.76.76"
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
},
{
"interface": "loopback",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 13885,
"l3_device": "lo",
"proto": "static",
"device": "lo",
"updated": [
"addresses"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "127.0.0.1",
"mask": 8
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
},
{
"interface": "wan",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 983,
"l3_device": "eth0.2",
"proto": "static",
"device": "eth0.2",
"updated": [
"addresses",
"routes"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "10.0.0.4",
"mask": 24
}
],
"ipv6-address": [
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "10.0.0.1",
"source": "0.0.0.0\/0"
}
],
"dns-server": [
"75.75.75.75"
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
},
{
"interface": "wan6",
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 3366,
"l3_device": "eth0.2",
"proto": "static",
"device": "eth0.2",
"updated": [
"addresses",
"routes"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
],
"ipv6-address": [
{
"address": "2001:2001:2001:2001::2",
"mask": 64
}
],
"ipv6-prefix": [
],
"ipv6-prefix-assignment": [
],
"route": [
{
"target": "::",
"mask": 0,
"nexthop": "fe80::1",
"source": "::\/0"
}
],
"dns-server": [
],
"dns-search": [
],
"inactive": {
"ipv4-address": [
],
"ipv6-address": [
],
"route": [
],
"dns-server": [
],
"dns-search": [
]
},
"data": {
}
},
{
"interface": "wan_map",
"up": false,
"pending": false,
"available": false,
"autostart": true,
"dynamic": false,
"proto": "none",
"data": {
},
"errors": [
{
"subsystem": "interface",
"code": "NO_DEVICE"
}
]
}
]
}