macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 13:47:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Setting Up VLAN on WL-500gP  (Read 1449 times)
0 Members and 1 Guest are viewing this topic.
ScarEye
Newbie
*
Offline Offline

Posts: 13


View Profile
« on: April 07, 2007, 01:14:59 AM »

Hey guys I have a a WL-500gP and I would like to setup a VLAN so my router's main ip is 192.168.1.1
I would like to create 192.168.2.1 on Port 2 of the router ?  Anyone know how I can do this or know
of a site that would have this information available for a newb.  Like a step by step thing ?


Thanks for your time,
ScarEye


PS, I am running White Russian 0.9. 

Thanks
Logged
ScarEye
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #1 on: April 07, 2007, 03:55:07 AM »

Answer:

http://wiki.openwrt.org/OpenWrtNVRAM
Logged
ScarEye
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: April 07, 2007, 04:24:10 AM »

The only thing I can't find YET, is how can I automate the ifup command for the
second connection.

ifup mylan

How can I automate this at startup ?

Thanks
ScarEye
« Last Edit: April 07, 2007, 04:32:51 AM by ScarEye » Logged
ScarEye
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #3 on: April 07, 2007, 04:32:07 AM »

Answer:

Modify /etc/init.d/S40network

#!/bin/sh
case "$1" in
  start|restart)
  rm -f /tmp/resolv.conf
  ln -s /tmp/resolv.conf.auto /tmp/resolv.conf
  ifup_interfaces=$(nvram get ifup_interfaces)
  ifup_interfaces=${ifup_interfaces:-"lan wan wifi port4"}  <---- (PORT4 IS MY NEW VLAN2 CONNECTION)
  for iface in $ifup_interfaces; do
        ifup $iface
        if [ "$iface" = "wifi" ]; then
                $iface up
        fi
  done
  ;;
esac


Hopefully this might help someone out.

Thanks
ScarEye
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #4 on: April 07, 2007, 11:47:33 AM »


All it takes from my side it so be slow to answer, and you'll figure it out yourselves ;-)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.066 seconds with 24 queries.