Posted: Mon Jan 24, 2022 19:41 Post subject: Define interface roles from console
Hi all, I am trying to use dd-wrt inside of GNS3 to simulate a robust SOHO router. I started using dd-wrt flashed devices back in 2007 and have always enjoyed the software and figured it would make a grate platform.
I have created a QEMU VM to run dd-wrt using build r48141 and image dd-wrt_x64_public_vga.image. 1 vcpu, 128 mb ram and assigned 4 network interfaces. 'ip a' and 'ifconfig' show all 4 interfaces (eth 0 - eth 3) and br0. You can see this in the attached image.
Is there a command or config to assign a specific interface as the lan interface and the wan interface? Right now I can see my interfaces, but am not sure of the next step (I saw some documentation about setting up the DHCP server via CLI, I couldn’t get that to work. I also tried assigning static IP addresses via ifconfig and connect directly but could not reach the management interface.)
Also, is there an easy way to see members of the bridge 0 interface?
You can dump the bridges w/ the following command.
Code:
brctl show
In my experience (w/ real hardware), the firmware always defaults its choices among the network interfaces. And it always disables the network interface assigned to the WAN. And so the only IP assigned by default is the one you see specified (82.96.119.119) for the private network (br0), which should be the means to access the GUI. But normally I have that bridged to my *private* network (192.168.1.0/24) for configuration purposes. I don't know the first thing about GNS3 and why it has a public IP.
Thanks for your insight! That was exactly what I needed. I was able to join the eth0 interface to the bridge group and change the group IP address and then ping it from a host on the lan! At that point the web configuration was not loading, I found the httpd service had crashed but I was able to get it running with some help from the thread linked below. Im not sure about the public either, the VM was not connected to anything, but that’s probably just one of those things.
Joined: 06 Jun 2006 Posts: 7492 Location: Dresden, Germany
Posted: Tue Jan 25, 2022 11:39 Post subject: Re: Define interface roles from console
jamous wrote:
Hi all, I am trying to use dd-wrt inside of GNS3 to simulate a robust SOHO router. I started using dd-wrt flashed devices back in 2007 and have always enjoyed the software and figured it would make a grate platform.
I have created a QEMU VM to run dd-wrt using build r48141 and image dd-wrt_x64_public_vga.image. 1 vcpu, 128 mb ram and assigned 4 network interfaces. 'ip a' and 'ifconfig' show all 4 interfaces (eth 0 - eth 3) and br0. You can see this in the attached image.
Is there a command or config to assign a specific interface as the lan interface and the wan interface? Right now I can see my interfaces, but am not sure of the next step (I saw some documentation about setting up the DHCP server via CLI, I couldn’t get that to work. I also tried assigning static IP addresses via ifconfig and connect directly but could not reach the management interface.)
Also, is there an easy way to see members of the bridge 0 interface?
Thanks!
Jamous
you can do all this from the setup->networking tab _________________ "So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s