Hello, I'm trying to build a system where I have a vm acting as a router. This has four ethernet points, eth0 connecting to a wan (192.168.10.0) eth1 connecting to lan (192.168.1.0) eth2 connecting to lan1 (192.168.2.0) eth3 connecting to lan2 (192.168.3.0)
What I'm trying to achieve is a setup where: lan can connect to the wan lan1 and lan2 can connect to lan but not each other lan can connect to lan1 and lan2. with my current setup lan1 and lan2 get 192.168.1.* ip addresses, when I would like them to have 192.168.2.* and 192.168.3.* respectively. I'd then need to arrange some routing between the networks. My /etc/config/ network is this. config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0' config interface 'lan' option ifname 'eth1' option type 'bridge' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' option dns '192.168.1.1' option delegate '0' config interface 'wan' option ifname 'eth0' option _orig_ifname 'eth0' option _orig_bridge 'false' option proto 'static' option ipaddr '192.168.10.1' option netmask '255.255.255.0' config globals 'globals' option ula_prefix 'fd94:6fae:1ab5::/48' config interface 'lan1' option proto 'static' option type 'bridge' option ifname 'eth2' option ipaddr '192.168.1.2' option netmask '255.255.255.0' option gateway '192.168.1.2' option dns '192.168.1.1' option delegate '0' config interface 'lan2' option proto 'static' option type 'bridge' option ifname 'eth3' option ipaddr '192.168.1.3' option netmask '255.255.255.0' option gateway '192.168.1.3' option dns '192.168.1.1' option delegate '0' My dhcp files is as follows, config dnsmasq option domainneeded '1' option boguspriv '1' option localise_queries '1' option rebind_protection '1' option rebind_localhost '1' option local '/lan/' option domain 'lan' option expandhosts '1' option authoritative '1' option readethers '1' option leasefile '/tmp/dhcp.leases' option resolvfile '/tmp/resolv.conf.auto' option localservice '1' config dhcp 'lan' option interface 'lan' option start '100' option limit '150' option leasetime '12h' option ra 'server' option netmask '255.255.255.0' config dhcp 'wan' option interface 'wan' option ignore '1' config host option name 'guacamole' option mac '00:0c:29:d3:e6:d9' option ip '192.168.1.177' config host option name 'windows' option mac '00:0c:29:84:84:aa' option ip '192.168.1.160' config dhcp 'lan1' option start '100' option leasetime '12h' option limit '150' option interface 'lan1' config dhcp 'lan2' option start '100' option leasetime '12h' option limit '150' option interface 'lan2' Thanks, James
_______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
