Configuration examples
U
SER
G
UIDE
361
set switch port 3 mode access
set switch port 3 vid 30
set switch port 4 mode access
set switch port 4 vid 40
set switch port 5 mode access
set switch port 5 vid 50
set switch on
set vlan add vid 10 interface eth1
set vlan add vid 20 interface eth1
set vlan add vid 30 interface eth1
set vlan add vid 40 interface eth1
set vlan add vid 50 interface eth1
set vlan eth1.10 ipaddr 192.168.10.1 netmask 255.255.255.0
set vlan eth1.20 ipaddr 192.168.20.1 netmask 255.255.255.0
set vlan eth1.30 ipaddr 192.168.30.1 netmask 255.255.255.0
set vlan eth1.40 ipaddr 192.168.40.1 netmask 255.255.255.0
set vlan eth1.50 ipaddr 192.168.50.1 netmask 255.255.255.0
ADSL
NAT
WITH AN
IP
LAN
CUSTOMER WITH PUBLIC AND PRIVATE
IP
In this chapter it is described a base configuration of the ADSL (RFC 1483) interface with a NAT on
the Peer-To-Peer and a default route on the interface. A private IP address is set on the eth1
interface and a management IP address is set on the eth0.
set eth0 ipaddr 10.10.113.1 netmask 255.255.255.252
set eth0 on
set eth1 ipaddr <PRIVATE-IP> netmask <PRIVATE-NETMASK>
set eth1 on
set adsl encap rfc1483-llc
set adsl pvc-number 1
set adsl pvc atm0 pcr 0
set adsl pvc atm0 vpi 8 vci 35
set adsl pvc atm0 ipaddr <PTP-IP-ADDRESS>
set adsl pvc atm0 no-nexthop
set adsl pvc atm0 netmask 255.255.255.252
set adsl pvc atm0 default-route
set adsl pvc atm0 masquerade
set adsl on
Practical example:
set eth0 ipaddr 10.10.113.1 netmask 255.255.255.252
set eth0 on