Two interfaces on the same network

Al Al_chane at issc.com.tw
Wed Jun 9 18:08:39 UTC 2004


I didn't set default gateway (if that's what you meant "default route")
 
I just bring up two interfaces with:
>ifconfig eth0 172.20.1.30 netmask 255.255.255.0
>ifconfig eth1 172.20.1.31 netmask 255.255.255.0
 
that's it. no more route or other commands.
 
Another PC is 172.20.1.32 netemask 255.255.255.0
 
Two PCs (3 wires) are connected with a hub.
 
Thanks:)
 
AL
 

	-----Original Message----- 
	From: redhat-list-bounces at redhat.com 代理 Rodolfo J. Paiz 
	Sent: 2004/6/10 [星期四] 上午 01:47 
	To: General Red Hat Linux discussion list 
	Cc: 
	Subject: RE: Two interfaces on the same network
	
	

	At 11:21 6/9/2004, Al wrote:
	>When PC with IP 172.20.1.32 use browser to access
	>http://172.20.1.31, linux device reply by eth0, not eth1.(by sinffer)
	>That is, linux device seems only to use eth0 (first brought up)
	>when all interfaces are in the same network. Packets won't
	>be passed thru eth1 even if I intend to do so. If eth0 wire is unplug,
	>eth1 won't work too since linux only use eth0 if eth0/eth1 are in the same
	>network.
	
	And the reason for that is probably your "default route" which is set to
	eth0. Check your routing table.
	
	
	--
	Rodolfo J. Paiz
	rpaiz at simpaticus.com
	http://www.simpaticus.com
	
	
	--
	redhat-list mailing list
	unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
	https://www.redhat.com/mailman/listinfo/redhat-list
	



More information about the redhat-list mailing list