VLan above 100 - ASUS RT-N12

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sat Feb 26, 2011 18:25    Post subject: Reply with quote
LOM wrote:
doell_60 wrote:
Another thing, i can't do This:

cd /jffs
get http://www.dd-wrt.com/phpBB2/download.php?id=18205 -O switch-robo.ko"



wget , not get


I thought that was GET because of the DOWNLOAD page, and that was doing something wrong.

I GOOGLED arround and found nothing, i'm trying and i'm afraid that i'm doing something wrong. I was waiting for a WAN IP for about 30min, and nothing...

I need some confirmation of the VLAN CONFIG that i've put in the first Picture. With out that i'm not sure what to do.

I Enabled the JFFS, put the Script on Comands, and i've selected the Vlan 100 for WAN port, but the Config on the picture i'm not sure what to do, leave the standart VLAN 1? Remove the option? Don't know.

Many Thanks (Sorry for the bad English)
Sponsor
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sat Feb 26, 2011 21:55    Post subject: Reply with quote
Check phuzi0n's post, with patched switch-robo module you can't use webgui, you will have to use the start script or at least telnet/ssh to setup it manually via commands for testing.
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sat Feb 26, 2011 22:12    Post subject: Reply with quote
fggs wrote:
Check phuzi0n's post, with patched switch-robo module you can't use webgui, you will have to use the start script or at least telnet/ssh to setup it manually via commands for testing.


My not very good english, doesn´t help.

I put the script Here, ADMIN/COMMANDS


I'm not understanding how can apply the PATCH Switch-robo module, I just activate JFFS, like WIKKI show me, and put the script commands like the Picture above.

Thank you, i'm sorry for not understanding some things.
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sat Feb 26, 2011 23:43    Post subject: Reply with quote
Hi, i'm trying TELNET but it says "LOG IN INCORRECT", and i want to use SSH, and i can't Enable it, there is no Option for SSH.

Don't know what to do.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sat Feb 26, 2011 23:46    Post subject: Reply with quote
doell_60 wrote:
Hi, i'm trying TELNET but it says "LOG IN INCORRECT", and i want to use SSH, and i can't Enable it, there is no Option for SSH.

Don't know what to do.

The telnet/ssh username is always "root" and the password is whatever your GUI password is. SSH is found on the services page.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Keeper75
DD-WRT Novice


Joined: 25 Feb 2011
Posts: 15

PostPosted: Sun Feb 27, 2011 1:10    Post subject: Reply with quote
fggs wrote:
Hi Keeper75, I can sure try.

The switch-robo.ko is a patched module of Broadcom switch which allows routers with some broadcom switches to use vlans >16.

This is how TG784 from Vodafone works:

WAN port is tagged to all vlans (100, 101 and 105)
All lan ports are bridged like a normal router, so it gives internet only per default.

For IPTV to work, you will need to run a dhcp client on your vlan105 (or eth0.105, I don't how your interfaces are called) to get ip 10.x.y.z and then use a multicast proxy, like igmpproxy. Upstream would be vlan105 and Downstream would be br0 (lan bridge).

If configured properly, your tvbox will get an ip in "internet range" (192.168.1.X for example) but TV will work.

For Voip, I moved one of the ports to vlan101 and plug TG784 router there, so I can take advantage of RJ11 port.

I hope it's more clear for you


Thank you for your explanation, but i'm still trying to figure out how to attach a dhcp client on the vlan 105 (eth1.xxx)...

Anyway, i'm using - more specifically - OpenWrt and i saw one interesting ideia on their forums: attach a 2nd mac address to the wan interface by installing a package called macvlan and run the 2nd vlan (105 - iptv) on it.

Assuming that dd-wrt is similar, the required commands are:


Code:
opkg update
opkg install ip
opkg install kmod-macvlan

edit /etc/rc.local  and add:

ip link add link eth1 eth2 type macvlan
ifconfig eth2 hw ether xx:xx:xx:xx:xx:xx #your second mac
ifup -a

edit /etc/config/network and add:

#second IP
config 'interface' 'wan1'
        option 'ifname' 'eth2'
        option 'proto' 'dhcp'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'gateway' '0.0.0.0'


you can check all this here: https://forum.openwrt.org/viewtopic.php?id=28630

Unfortunately i'm having a hard time to add the macvlan module since there's no snapshot for my cpu anymore, on openwrt...(idk why Crying or Very sad )


Regards!
fggs
DD-WRT Guru


Joined: 28 Jan 2008
Posts: 1741

PostPosted: Sun Feb 27, 2011 1:19    Post subject: Reply with quote
You can check with their support but I would try something like this:

Assuming your lan interface is eth0

#second IP
config 'interface' 'eth0.105'
option 'ifname' 'iptv'
option 'proto' 'dhcp'
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sun Feb 27, 2011 1:22    Post subject: Reply with quote
Now i do all the commands in SSH and it says:

startservice wanroot@DD-WRT:~# echo "3 2 5*" > /proc/switch/eth1/vlan/0/ports
-sh: can't create /proc/switch/eth1/vlan/0/ports: nonexistent directory
root@DD-WRT:~# echo "" > /proc/switch/eth1/vlan/1/ports
-sh: can't create /proc/switch/eth1/vlan/1/ports: nonexistent directory
root@DD-WRT:~# echo "4t 8" > /proc/switch/eth1/vlan/100/ports
-sh: can't create /proc/switch/eth1/vlan/100/ports: nonexistent directory
root@DD-WRT:~# echo "4t 0 8" > /proc/switch/eth1/vlan/101/ports
-sh: can't create /proc/switch/eth1/vlan/101/ports: nonexistent directory
root@DD-WRT:~# echo "4t 1 8" > /proc/switch/eth1/vlan/105/ports
-sh: can't create /proc/switch/eth1/vlan/105/ports: nonexistent directory


But i'm going to NETWORK CONFIG and the Vlan 100/101/105 is there.

My DD-WRT Build is:
14896

Thanks.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Feb 27, 2011 1:31    Post subject: Reply with quote
It's very unlikely that you really need two DHCP clients running. I would connect a PC to the IPTV and use a packet sniffer to check if it's tagging VLAN 105 or not.

If it is tagging then modify the router configuration to tag VLAN 105 on the port the IPTV is connected to.

If not then I would suggest just tagging VLAN 101 and 105 on a LAN port and then connecting the ISP provided router to that port and let the ISP provided router handle IPTV/VOIP.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Feb 27, 2011 1:35    Post subject: Reply with quote
doell_60 wrote:
But i'm going to NETWORK CONFIG and the Vlan 100/101/105 is there.

Huh? Do you mean the networking page in the GUI?

You might need to change "eth1" to "eth0" because it varies by model.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sun Feb 27, 2011 1:38    Post subject: Reply with quote
phuzi0n wrote:
doell_60 wrote:
But i'm going to NETWORK CONFIG and the Vlan 100/101/105 is there.

Huh? Do you mean the networking page in the GUI?


Yes, in the WAN Option.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Feb 27, 2011 1:56    Post subject: Reply with quote
doell_60 wrote:
phuzi0n wrote:
doell_60 wrote:
But i'm going to NETWORK CONFIG and the Vlan 100/101/105 is there.

Huh? Do you mean the networking page in the GUI?


Yes, in the WAN Option.

The WAN Port Assignment is changed regardless of whether the VLAN's are created or not. If the VLAN's are created then you will see each of them in the Port Setup section.

Run this command to check the interface that you need to use.

cat /proc/switch

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sun Feb 27, 2011 2:16    Post subject: Reply with quote
this comand he does nothing, i searched like this:

cd /switch
cd /eth0

and the folder is eth0, the eth1 does not work.

Remember that my build is the 14896, SMALL.
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Feb 27, 2011 2:26    Post subject: Reply with quote
Sorry I meant this:

ls /proc/switch

But you figured out that it is indeed eth0. Change everything in the script from eth1 to eth0.

_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doell_60
DD-WRT User


Joined: 18 Feb 2011
Posts: 51

PostPosted: Sun Feb 27, 2011 2:40    Post subject: Reply with quote
You don't have to appolagise.

I Run the 2 echo scripts and is OK, but the after:

echo "4t 8" > /proc/switch/eth0/vlan/100/ports
-sh: can't create /proc/switch/eth0/vlan/100/ports: nonexistent directory
echo "4t 0 8" > /proc/switch/eth0/vlan/101/ports
-sh: can't create /proc/switch/eth0/vlan/101/ports: nonexistent directory
echo "4t 1 8" > /proc/switch/eth0/vlan/105/ports
-sh: can't create /proc/switch/eth0/vlan/105/ports: nonexistent directory


The others lines gives me no error just these 3.
Goto page Previous  1, 2, 3, 4, 5, 6  Next Display posts from previous:    Page 2 of 6
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum