You'd need to subnet in order to have teh same network on multiple
interfaces.
You're probably better off using separate networks, doing like so:
Linux eth1: 192.168.1.1/24
Linux eth2: 192.168.2.1/24
WIN1: 192.168.1.2/24
WIN2: 192.168.2.2/24
with a routing table that looks like:
Destination Gateway Genmask Flags Metrics Ref Use Iface
192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
192.168.1.2 192.168.1.1 255.255.255.255 UG 0 0 0 eth1
192.168.2.2 192.168.2.1 255.255.255.255 UG 0 0 0 eth2
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 inet-gw 0.0.0.0 UG 0 0 0 eth0
In fact, lines 3 and 4 probably wouldn't be an issue, and can be left off.
On Tue, 20 Feb 2001, Peter Peltonen wrote:
>
> Hi,
>
> I'm building a home network for a friend and was wondering if following setup
> would be possible:
>
>
> Internet
>
> |
> |
>
> eth0
>
> LINUX eth1 -- WIN1
>
> eth2
>
> |
> |
>
> WIN2
>
>
> So I would connect the Windoze machines directly to the Linux box. And they
> all would be in the same network:
>
> Linux eth1: 192.168.1.1/24
> Linux eth2: 192.168.1.2/24
> WIN1: 192.168.1.3/24
> WIN2: 192.168.1.4/24
>
>
> My routing table would look like this:
>
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
> 192.168.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 eth2
> 192.168.1.3 192.168.1.1 255.255.255.255 UG 0 0 0 eth1
> 192.168.1.4 192.168.1.2 255.255.255.255 UG 0 0 0 eth2
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 inet-gw 0.0.0.0 UG 0 0 0 eth0
>
>
> Would it work?
>
> How would I configure my ipchains-firewall in this case? I'd the traffic from
> 192.168.1.0/24 network to be masqueraded. And nothing would be let in from the
> firewall (except DHCP queries as the Linux box takes it's eth0 IP via DHCP).
>
> Or do I have to put Linux's eth1 and eth2 to different networks and setup WINS
> so that the Windoze boxes can see eachother?
>
> Regards,
> Peter
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list