Layer 3 routing on wireless port
Wireless Interface
9-13
iMG/RG Software Reference Manual (Wireless)
pppoe set transport pppoe_data givedns client disabled
pppoe set transport pppoe_data givedns relay enabled
pppoe set transport pppoe_data createroute enabled
ip attach ip_data pppoe_data
#Internal private user network. A DHCP server is configured on the CPE
to provide addresses to the hosts connected on this network.
vlan add vlan_user vid 100 802.1p_priority 0
ethernet add transport vlan_user
vlan add vlan_user port lan4 frame untagged
vlan add vlan_user port wireless frame untagged
ip add interface ip_user
ip set interface ip_user ipaddress 192.168.1.1 255.255.255.0
ip attach ip_user vlan_user
dhcpserver enable
dhcpserver add subnet dhcp_user 192.168.1.0 255.255.255.0
192.168.1.100 192.168.1.200
dhcpserver set subnet dhcp_user hostisdefaultgateway enabled
dhcpserver set subnet dhcp_user hostisdnsserver enabled
dhcpserver update
#Routing table reconfiguration.
ip add route voice_server 172.30.1.121 255.255.255.255 gateway
172.32.3.1
ip add route voice_server2 172.30.1.123 255.255.255.255 gateway
172.32.3.1
ip add route voice_server3 172.30.1.201 255.255.255.255 gateway
172.32.3.1
ip add route mgmt-1 10.17.90.0 255.255.255.0 gateway 172.32.2.1
ip add route mgmt-2 172.30.1.202 255.255.255.255 gateway 172.32.2.1
#Local time and date configuration.
sntpclient add server ipaddress 172.30.1.202
sntpclient set pollintv 2
sntpclient set timezone MET
#VoIP protocol configuration.
voip sip protocol enable
voip dtmf-relay set mode auto
voip ep analogue create tel1 type al-fxs-del physical-port tel1
voip ep analogue set tel1 country usa
voip ep analogue set tel1 clip BELL
voip ep analogue set tel1 clir off
voip ep analogue set tel1 codec g711u
voip ep analogue set tel1 vad off
voip ep analogue set tel1 cng off
voip ep analogue set tel1 lec 8