Page 951 / 998 Scroll up to view Page 946 - 950
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
Page 952 / 998
Wireless Interface
Layer 3 routing on wireless port
iMG/RG Software Reference Manual (Wireless)
9-14
voip ep analogue create tel2 type al-fxs-del physical-port tel2
voip ep analogue set tel2 country usa
voip ep analogue set tel2 clip BELL
voip ep analogue set tel2 clir off
voip ep analogue set tel2 codec g711u
voip ep analogue set tel2 vad off
voip ep analogue set tel2 cng off
voip ep analogue set tel2 lec 8
voip sip protocol set netinterface ip_voip
voip sip locationserver create loc1 contact 172.30.1.121
voip sip proxyserver create prox1 contact 172.30.1.121
voip sip protocol set internal-call-routing enable
voip sip user create 1723231461 address 1723231461 areacode 604
voip sip user add 1723231461 port tel1
voip sip user create 1723231462 address 1723231462 areacode 604
voip sip user add 1723231462 port tel2
#IP masquerade configuration.
security enable
security add interface ip_data external
security add interface ip_user internal
nat enable data-ext_int ip_data internal
#Software update configuration
swupdate set server 172.30.1.9
swupdate set path /public/swupdate/3-4_57_02_04/alpha/iMG634B/upload
swupdate set login root
swupdate set passwd friend
swupdate stop_time none
swupdate start_time minute */2 hour * day_of_month * month *
day_of_week *
#Wireless port configuration for WPA2 AES-CCMP authentication with
password “friendfriend”
port wireless set Disable false
port wireless set ESSID iMG634WA-example
802.1x authenticator set authentication local
802.1x authenticator set authentication enable
port wireless set WPAEnableWPA1 true
port wireless set WPAEnableWPA2 true
port wireless set WPA true
port wireless set WPAEnablePSK true
port wireless set WPA2EnableTKIP false
port wireless set WPA2EnableAES_CCMP true
port wireless set WPA2EnablePreauth true
port wireless set Authentication WPA-PSK
Page 953 / 998
Layer 3 routing on wireless port
Wireless Interface
9-15
iMG/RG Software Reference Manual (Wireless)
port wireless set Encryption TKIP
wpa set shared passphrase friendfriend
9.1.3.2 Layer 3 CPE Configuration for ADSL B group wireless products
#Management network configuration. A DHCP server is used to provides
addresses on this subnet. 172.32.2.1 is the default gateway for this
subnet.
vlan create vlan_mgmt 202
ip ad interface ip_mgmt
dhcpclient ad interfaceconfig ic_mgmt ip_mgmt
dhcpclient interfaceconfig ic_mgmt add requested option subnet-mask
dhcpclient interfaceconfig ic_mgmt add requested option routers
dhcpclient interfaceconfig ic_mgmt add requested option domain-name
dhcpclient interfaceconfig ic_mgmt add requested option domain-name-
servers
bridge add vlaninterface vlan_mgmt tagged pvc_0_35_if
ip attach ip_mgmt vlan_mgmt
dhcpclient update
#Clean up interface ip0 (default)
ip set interface ip0 dhcp disabled
dhcpclient update
ip set interface ip0 ipaddress 0.0.0.0 0.0.0.0
bridge delete vlaninterface DefaultVlan pvc_0_35_if
ip set interface ip_mgmt dhcp enabled
dhcpclient update
#Management access configuration. 172.30.1.0 and 10.17.90.0 subnets
are located on management networks.
webserver add managementsubnet mgmt1 172.30.1.0 255.255.255.0
172.30.1.1 172.30.1.254
webserver add managementsubnet mgmt2 10.17.90.0 255.255.255.0
10.17.90.1 10.17.90.254
#VoIP network configuration. A DHCP server is used to provides
addresses on this subnet on PVC 8/35. 172.32.3.1 is the default gate-
way for this subnet.
ip add interface ip_voip
ip set interface ip_voip dhcp enabled
dhcpclient add interfaceconfig ic_voip ip_voip
dhcpclient interfaceconfig ic_voip add requested option subnet-mask
dhcpclient interfaceconfig ic_voip add requested option routers
dhcpclient interfaceconfig ic_voip add requested option domain-name-
servers
dhcpclient interfaceconfig ic_voip add requested option domain-name
Page 954 / 998
Wireless Interface
Layer 3 routing on wireless port
iMG/RG Software Reference Manual (Wireless)
9-16
dhcpclient set interfaceconfig ic_voip givednstoclient enabled
dhcpclient set interfaceconfig ic_voip givednstorelay disabled
dhcpclient set interfaceconfig ic_voip defaultroute disabled
rfc1483 add transport pvc_voip a1 8 35
bridge add interface if_pvc_voip
vlan create vlan_voip 203
bridge attach if_pvc_voip pvc_voip
bridge add vlaninterface vlan_voip untagged if_pvc_voip
ip attach ip_voip vlan_voip
dhcpclient update
#Data network configuration. A PPP connection is configured on this
interface on PVC 1/35.
ip add interface ip_data
pppoe add transport pppoe_data dialout pvc 4 a1 1 35
pppoe set transport pppoe_data welogin chap
pppoe set transport pppoe_data username manager
pppoe set transport pppoe_data password friend
pppoe set transport pppoe_data subnetmask 255.255.255.255
pppoe set transport pppoe_data givedns clint 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 create vlan_user 100
vlan add vlan_user lan4 frame untagged
switch set port lan4 802.1p Enabled
switch set port lan4 defaultpriority 0
bridge add vlaninterface vlan_user untagged wlan_filtered
bridge set interface wlan_filtered defaultuserpriority 0
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
Page 955 / 998
Layer 3 routing on wireless port
Wireless Interface
9-17
iMG/RG Software Reference Manual (Wireless)
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
voip ep analogue create tel2 type al-fxs-del physical-port tel2
voip ep analogue set tel2 country usa
voip ep analogue set tel2 clip BELL
voip ep analogue set tel2 clir off
voip ep analogue set tel2 codec g711u
voip ep analogue set tel2 vad off
voip ep analogue set tel2 cng off
voip ep analogue set tel2 lec 8
voip sip protocol set netinterface ip_voip
voip sip locationserver create loc1 contact 172.30.1.121
voip sip proxyserver create prox1 contact 172.30.1.121
voip sip protocol set internal-call-routing enable
voip sip user create 1723231461 address 1723231461 areacode 604
voip sip user add 1723231461 port tel1
voip sip user create 1723231462 address 1723231462 areacode 604
voip sip user add 1723231462 port tel2
#IP masquerade configuration.
security enable
security add interface ip_data external
security add interface ip_user internal
nat enable data-ext_int ip_data internal
#Software update configuration

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top