Bookmark and Share

Author Topic: Thomson 789vn Howto set WAN port as Trunk and assign 4 LAN ports to 4 VLANs  (Read 13638 times)

0 Members and 1 Guest are viewing this topic.

Offline jacobw35

  • PcWinTech Jr. Member
  • Join Date: Aug 2012
  • Posts: 2
  • Karma: 0
Hi I got about 2 old Thomson 789vn Routers unused and would like to add them in our Network, which uses VLANs and Trunk lines.
I know it is possible but just was unable to figure out the required configuration to get the below to work:

Our Network uses VLAN's on HP ProCurve and Cisco Catalyst switches.
I would like to use a Trunk line (Trunk port on Cisco/HP) and connect it to Thomson WAN port
Then assign the 4 LAN ports to 4 different VLANs.
When Connecting a PC to one of the LAN ports, it should be part of the specific VLAN network and get IP from DHCP in VLAN (not defined in Thomson)

Anyone that has some clues (preferrably CLI commands) to achieve this?

many thanks,

Jacob

PcWinTech.com Forums


Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Sounds like you just need to use the thomson as a switch and not a router.

If that is the case you wont plug anything into the WAN port, but instead put it in the lan port. Make sure DHCP is disabled in the thomson and it will just be a switch at that point. Then you can have the other ports get their IP from the vlan instead.

However if it has to be setup where the thomson has to have the IP in order for vlan to work then you have to see if the thomson has the options you need to assign other info to the lan ports.

I havent used that thomson before so I am not sure.

When ever I need to use old hardware for new setups I like to see if DD-WRT firmware will run on it. If it can then you get all the options and control you need :-)

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

Offline jacobw35

  • PcWinTech Jr. Member
  • Join Date: Aug 2012
  • Posts: 2
  • Karma: 0
Hi Shane,

Thanks for your quick reply.
I just figured out how to do it and below is the CLI script to get this working (first reset the router by pressing the reset button several seconds, until starts reset sequence):
- 5 VLANS (default,internet,data,voice,pin)
- ethport1 connected to vlan default
- ethport2 connected to vlan voice
- ethport3 connected to vlan data
- ethport4 connected to vlan internet
- wanport connected to all vlans (tagged)
- wifiport (wlan) connected to vlan internet (secured with factory wpa-psk settings)
- vlan default reassigned new ip range to 192.168.2.x, internal dhcp still active. router ip = 192.168.2.254 (after script has run and cable is reattached)
- remember to reconnect cable after script, as iprange changed, reconnect to 192.168.2.254 and give saveall command

======= script below =======

env set var SESSIONTIMEOUT value 0

ppp relay flush
ppp flush
eth flush
atm flush
atm phonebook flush

ip ipadd intf=LocalNetwork addr=192.168.2.254/24 addroute=enabled
dhcp server pool add name=LAN_dhcp
dhcp server pool config name=LAN_dhcp state=enabled allocation=automatic intf=LocalNetwork poolstart=192.168.2.64 poolend=192.168.2.253 netmask=24 gateway=192.168.2.254 server=192.168.1.254 leasetime=86400
dhcp relay modify name=LocalNetwork_to_127.0.0.1 addr=127.0.0.1 intf=LocalNetwork giaddr=192.168.2.254

eth bridge config vlan=enabled filter=none
eth vlan add name=internet vid=101 addrule=disabled
eth vlan add name=data vid=11 addrule=disabled
eth vlan add name=voice vid=21 addrule=disabled
eth vlan add name=pin vid=41 addrule=disabled

eth bridge vlan ifadd name=internet intf=WLAN
eth bridge vlan ifdelete name=default intf=WLAN
eth bridge vlan ifadd name=internet intf=ethport4
eth bridge vlan ifdelete name=default intf=ethport4
eth bridge vlan ifadd name=data intf=ethport3
eth bridge vlan ifdelete name=default intf=ethport3
eth bridge vlan ifadd name=voice intf=ethport2
eth bridge vlan ifdelete name=default intf=ethport2

eth bridge ifadd intf eth_wanport
eth bridge ifconfig intf eth_wanport dest ethif5
eth bridge ifattach intf=eth_wanport
eth bridge ifconfig intf=eth_wanport acceptvlanonly=enabled
eth bridge vlan ifadd name=internet intf=eth_wanport untagged=disabled
eth bridge vlan ifadd name=data intf=eth_wanport untagged=disabled
eth bridge vlan ifadd name=voice intf=eth_wanport untagged=disabled
eth bridge vlan ifadd name=pin intf=eth_wanport untagged=disabled

wireless mssid ifconfig ssid_id=0 secmode=wpa-psk

saveall
dhcp server lease flush
dhcp server pool delete name=LAN_private
ip ipdelete addr=10.0.0.138
ip ipdelete addr=192.168.1.254

Offline Shane

  • Top Geek, err uh Dog.
  • PcWinTech Administrator
  • PcWinTech Guru
  • *******
  • Join Date: Jul 2008
  • Posts: 16,846
  • Location: USA
  • Karma: 523
  • "Knowledge should be shared not hidden."
Nice  :cheesy:

Thanks for posting it. This will be of help to others looking to do the same :wink:

In fact, I think I will sticky this thread.

Shane
(My weekends belong to my wife and kids, I will try my best to answer all posts daily during the work week)

(About Shane)
Site Owner, Top Admin, Lead Programmer, Wife & 5 kids, Needs a lot more coffee.

When people ask "Why fix what isn't broken?" I reply "To make it better."
"Only a life lived for others is a life worthwhile"
Honor & Respect is all that matters.

Owner & Programmer of: www.pcwintech.com & www.tweaking.com

PcWinTech.com Forums


 

email