All of this works like a charm, nevertheless, on 179.33.26.205 i need to use a Bind9 DNS server and unfortunately the bind9 server is not able to listen of 0.0.0.0:53, just on 10.24.1.173:53, so, it doesn't resolve any query tat comes from 179.33.26.205 just 10.24.1.x dns requests. No matter to forward ports TCP 53 and UDP 53 (that is the the way it works). Ports are one on public ip as telnet works, but there is no answer on DNS queries.
So, what now i need is to receive directly the ip 179.33.26.205 on the Linux Debian server where DNS is installed, to have the server directly on internet and not behind the router.
So, in theory, i just have to plug the sever ethernet cable to receive the second external ip, but it doesn't work.
i don't understand what the router does to acquires the ip just with this line /usr/sbin/ip addr add 179.33.26.205/29 dev vlan100, and it does not work the same way on the server.
Is there any way to test if the switch port is really working on WAN vlan 100?
I already tried everything, even moving all the ports to the VLAN 100 with
swconfig dev switch0 vlan 100 set ports "0t 2 3 4 5 7 8t"
swconfig dev switch0 vlan 1 set ports "8t"
I tried tagging all switch ports with the same results
swconfig dev switch0 vlan 100 set ports "0t 2t 3t 4t 5t 7t 8t"
swconfig dev switch0 vlan 1 set ports "8t"
Is it really that simple to just move a switch's port to the wan vlan? in the above link they said "You can move ports to the WAN VLAN to make them act as WAN ports residing outside the router's NAT. Devices attached to these ports will request their IP addresses from the ISP instead of getting a private IP address from your router."
Of course, the Interface Setup -> Port Setup -> WAN Port Assignment is assigned to vlan 100 on networking tab page.
On server /etc/network/interfaces I'm, using static addressing
address 179.33.26.205
netmask 255.255.255.248 (same as works on the router).
gateway (not sure) so, tried, with routers ip, no gateway and even the isp PPPoE gateway from ISP.
nameservers 200.21.200.10 200.21.200.80
Finally, there is no way to receive the external IP on the server itself. Any help will be granted as this is driving me crazy.
PD: I don’t understand why my swtich is not showing port 1 and 6, no matter to use:
swconfig dev switch0 set reset 1
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
Posted: Wed Dec 07, 2022 8:58 Post subject:
Not having a direct solution, but perhaps you are overcomplicating things.
You have two public IP addresses and want to connect one of those addresses to your server.
this is indeed done with one-to-one NAT, you have done this manually but you can normally do it via the GUI (not sure if it works with other than the default WAN e.g. your vlan 100)
Setting another VLAN to the WAN port can also be done via the GUI, just set ID 100 instead if ID 2 in the GUI, you probably need to tag it depending on what the provider wants but that can also be done in the GUI (Switch Config tab).
Joined: 13 Aug 2013 Posts: 6870 Location: Romerike, Norway
Posted: Wed Dec 07, 2022 13:11 Post subject:
1) The switch may not support 100 vlans. Try this instead:
swconfig dev switch0 vlan 2 set ports "0t 2 8t"
swconfig dev switch0 vlan 2 set vid 100
2) This would have worked with a bare-bone wan, but you said in your first post that you are using PPoE. Your wan is the PPoE interface, not the vlan2 on the switch.
PPPoE automatically uses the interface that is configured under "WAN port assignment"
Quote:
root@DD-WRT:/tmp/ppp# cat options.pppoe
nic-eth0
/ etc..
So you can easily tag PPPoE by creating a new VLAN (add new VLAN tag to eth0) , assigning the VLAN to the WAN port (make sure that the new VLAN and eth0 are not bridged to the LAN).
you can also simply tag the switch port - works too
Last edited by ho1Aetoo on Wed Dec 07, 2022 13:56; edited 2 times in total
Can the ONT handle two PPPoE conections at the same time? I will try to establish PPPoE from the server itself using same vlan100 and keep you posted. Thanks.