Routing setup

Hi all.

I have this setup:
just example IP's

80.1.0.0/30 is the range i got from my ISP so that i can get on this thing called the internet :slight_smile:
80.0.10.0/27 is a routed range, witch i have splitted up to 8 /30.

IP SETUP:
ether1: 80.1.0.0/30
ether3: no ip set
ether3-vlan10: 80.0.10.0/30
ether3-vlan20: 80.0.10.4/30
ether3-vlan30: 80.0.10.8/30
ether3-vlan40: 80.0.10.12/30
ether3-vlan50: 80.0.10.16/30
ether3-vlan60: 80.0.10.20/30
ether3-vlan70: 80.0.10.24/30
ether3-vlan80: 80.0.10.28/30

And on ether3 there is a Cisco 2950 where fa0/24 (the trunk port) is connected.

IP ROUTE:

DST-ADDRESS PREF-SRC GATEWAY-STATE GATEWAY DISTANCE INTERFACE

0 A S 0.0.0.0/0 reachable 80.1.0.1 1 ether1
1 ADC 80.1.0.0/24 80.1.0.2 0 ether1
2 ADC 80.0.0.0/30 80.0.0.1 0 vlan10
3 ADC 80.0.0.4/30 80.0.0.5 0 vlan20
4 ADC 80.0.0.8/30 80.0.0.9 0 vlan30
5 ADC 80.0.0.12/30 80.0.0.13 0 vlan40
6 ADC 80.0.0.16/30 80.0.0.17 0 vlan50
7 ADC 80.0.0.20/30 80.0.0.21 0 vlan60
8 ADC 80.0.0.24/30 80.0.0.25 0 vlan70
9 ADC 80.0.0.28/30 80.0.0.29 0 vlan80


The thing that i wanted to setup was so that every vlan can talk to etch other, and go on the net via ether1.
So that trafik can get in/out from the net.

As it is now i can ping the IP's the RouterOS has taken for it self, from the internet.
But not the device connectet as 80.0.0.2, 80.0.0.6, 80.0.0.10 and so on...
And 80.0.0.2, 80.0.0.6, 80.0.0.10 and so on, can't connect to the internet.

Behind the RB133 are users on a RFC1918 IP range.
And from x.12/30 and up are servers.

I'm new to RouterOS routing (i'm migrating from m0n0wall).

The Setup Picture:

QpoX -

Well first thing that strikes me is that you want all the VLans to talk to each other…so this begs the question - why use VLans at all if that is your goal?

IP SETUP:
ether1: 80.1.0.0/30

these are quotes from you…comments below…

0 A S 0.0.0.0/0 reachable 80.1.0.1 1 ether1
1 ADC 80.1.0.0/24 80.1.0.2 0 ether1
2 ADC 80.0.0.0/30 80.0.0.1 0 vlan10
3 ADC 80.0.0.4/30 80.0.0.5 0 vlan20

The first quote - eth1 80.1.0.0/30 which is your ‘public’ IP network and it is on eth1.
In your second quote - you show 80.1.0.0/24 as being available and the gateway (I have to assume as you seemed to have trimmed everything out…) is 80.1.0.2 Since it has an ADC on the front of that route that means you have 80.1.0.2/24 as the actual IP address - you clearly stated in the begining that 80.1.0.0/30 was the network and the IP was 80.1.0.2/30

You also need to add a routing rule - in Winbox, /Ip route, once here go to the second tab - rule. Here you add src 0.0.0.0/0 dst 0.0.0.0/0 action=lookup table=main

So you need to clean up you example - it will make more sense then…

Also think about it - do you really need VLans? Or are you just following a ‘fad’? It you don’t need VLans then you could use ALL of the public IPs instead of only 8 of them…

R/

The reason that i want them to talk to each other, is that i have servers on does vlan’s also and they maybe want to visit each other and share data.
And the reason not to just put them all in 1 subnet is so that other servers/users can’t take IP’s from other people.

Good old copy/pasta… I did not want to make my IP’s public (well yes they are public, but you get the drift) in here, so i just deleted and copy/pasta/edit :slight_smile:
Sorry for that… it is a /30 :slight_smile:

Nope no ‘fad’ here (or i hope not).


But i’ll try the routing rule you wrote. And make a better setup/new

Well i needed the other connection and IP range for other use, so i’m stuck on this setup now.

I have Computer’s on 192.168.70.253, 192.168.60.254 and 192.168.50.2
And i have routerboards on 10.50.90.10 and 10.50.90.20

The Computers can ping each other fine.
But i can’t ping out on ether1, but i can ping 10.50.90.30 and not 10.50.90.10 + 10.50.90.20
And when i do a traceroute between the Computers, it takes 60sek for 2hops (30sek each)… Why?

The RB333 (the one with address 10.50.90.30) can go on the new via the gw 10.20.30.1
But how do i get 192.168.. on the net without NAT?

My gateway on 10.20.30.1 has static routes set like this:
192.168.(20-240).0/24 → 10.50.90.30


The things that i havn’t touch’d or is not set i have remove’d from this export.
########################
My Setup:
########################
/ip address
add address=10.50.90.30/8 broadcast=10.255.255.255 comment=“” disabled=no interface=ether1 network=10.0.0.0
add address=192.168.20.1/24 broadcast=192.168.20.255 comment=“” disabled=no interface=vlan20 network=192.168.20.0
add address=192.168.30.1/24 broadcast=192.168.30.255 comment=“” disabled=no interface=vlan30 network=192.168.30.0
add address=192.168.40.1/24 broadcast=192.168.40.255 comment=“” disabled=no interface=vlan40 network=192.168.40.0
add address=192.168.50.1/24 broadcast=192.168.50.255 comment=“” disabled=no interface=vlan50 network=192.168.50.0
add address=192.168.60.1/24 broadcast=192.168.60.255 comment=“” disabled=no interface=vlan60 network=192.168.60.0
add address=192.168.70.1/24 broadcast=192.168.70.255 comment=“” disabled=no interface=vlan70 network=192.168.70.0
add address=192.168.80.1/24 broadcast=192.168.80.255 comment=“” disabled=no interface=vlan80 network=192.168.80.0
add address=192.168.90.1/24 broadcast=192.168.90.255 comment=“” disabled=no interface=vlan90 network=192.168.90.0
add address=192.168.100.1/24 broadcast=192.168.100.255 comment=“” disabled=no interface=vlan100 network=192.168.100.0
add address=192.168.110.1/24 broadcast=192.168.110.255 comment=“” disabled=no interface=vlan110 network=192.168.110.0
add address=192.168.120.1/24 broadcast=192.168.120.255 comment=“” disabled=no interface=vlan120 network=192.168.120.0
add address=192.168.130.1/24 broadcast=192.168.130.255 comment=“” disabled=no interface=vlan130 network=192.168.130.0
add address=192.168.140.1/24 broadcast=192.168.140.255 comment=“” disabled=no interface=vlan140 network=192.168.140.0
add address=192.168.150.1/24 broadcast=192.168.150.255 comment=“” disabled=no interface=vlan150 network=192.168.150.0
add address=192.168.160.1/24 broadcast=192.168.160.255 comment=“” disabled=no interface=vlan160 network=192.168.160.0
add address=192.168.170.1/24 broadcast=192.168.170.255 comment=“” disabled=no interface=vlan170 network=192.168.170.0
add address=192.168.180.1/24 broadcast=192.168.180.255 comment=“” disabled=no interface=vlan180 network=192.168.180.0
add address=192.168.190.1/24 broadcast=192.168.190.255 comment=“” disabled=no interface=vlan190 network=192.168.190.0
add address=192.168.200.1/24 broadcast=192.168.200.255 comment=“” disabled=no interface=vlan200 network=192.168.200.0
add address=192.168.210.1/24 broadcast=192.168.210.255 comment=“” disabled=no interface=vlan210 network=192.168.210.0
add address=192.168.220.1/24 broadcast=192.168.220.255 comment=“” disabled=no interface=vlan220 network=192.168.220.0
add address=192.168.230.1/24 broadcast=192.168.230.255 comment=“” disabled=no interface=vlan230 network=192.168.230.0
add address=192.168.240.1/24 broadcast=192.168.240.255 comment=“” disabled=no interface=vlan240 network=192.168.240.0
/ip dns
set allow-remote-requests=no cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 primary-dns=208.67.222.222 secondary-dns=208.67.220.220
/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s tcp-close-wait-timeout=10s tcp-established-timeout=1d tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s
tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s
/ip route
add comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.20.30.1 scope=30 target-scope=10
/ip route rule
add action=lookup comment=“” disabled=no dst-address=0.0.0.0/0 src-address=0.0.0.0/0 table=main
/system ntp client
set enabled=yes mode=unicast primary-ntp=195.234.155.123 secondary-ntp=217.116.227.3

Forgot this…
I can ping from the 10.0.0.0/8 network to the 192.168.*.0/24 via my static routes.

Well dooh…
It was a vlan problem form the ISP :slight_smile:

All seems to work now.