L2-Aware support for residential gateway types

L2-Aware NAT functionality is tightly coupled with ESM and therefore, the type of the residential gateway supported in L2-Aware NAT depends on the anti-spoof setting of the ESM subscriber. In this context, the residential gateway types can be:

Anti-spoof settings in ESM that are relevant to this context include:

In addition to the anti-spoof setting, an additional CLI command is required in BNG to select the needed residential gateway type:

configure subscr-mgmt sub-prof nat-access-mode {auto | bridged}

The relationship between the anti-spoof setting in ESM, nat-access-mode CLI flag and a compatible residential gateway model is shown in Table: Anti-spoof setting comparisons .

Table: Anti-spoof setting comparisons
Model no. Home model Anti-spoof NAT access mode CLI flag Supported in SR OS Comments

1

Bridged RG

mac-ip

auto

bridged

Yes

All bridged subscriber hosts are eligible for L2-Aware NAT with the most stringent anti-spoof settings. If there is only one host behind the bridged RG, then this model becomes the same as model 3.

2

Bridged RG

nh-mac

bridged

Yes

All bridged subscriber hosts are eligible for L2-Aware NAT. In this model, MAC addresses within the subscriber and SAP must be unique.

Even though the anti-spoof in ESM is set to nh-mac, the NAT function still checks the source IP address of the upstream traffic and drops any traffic from spoofed IP addresses (IP source address that do not belong to the bridged hosts, as initially setup in ESM).

3

Routed RG with NAT

mac-ip

auto

bridged

Yes

Subscriber hosts behind the residential gateway are hidden behind routed RG’s NAT and are not visible in BNG.

4

Routed RG with NAT

nh-mac

auto

bridged

Yes

This combination is supported but with inferior anti-spoofing.

5

Routed RG, no NAT

mac-ip

No

This combination is not supported. The mac-ip anti-spoof in ESM blocks traffic for the host with an exposed source IP address that resides behind the RG. Those hosts are not set up in the BNG on the control plane level (DHCP/PPPoE is not sent from those hosts).

6

Routed RG, no NAT

nh-mac

auto

bridged

Yes

Subscriber hosts with exposed source IP addresses pass the nh-mac anti-spoof check and are eligible for L2-Aware NAT.