Mailinglist Archive: opensuse-security (757 mails)

< Previous Next >
3x NIC
  • From: "Omppu" <Omppu@xxxxxxxxxxxx>
  • Date: Mon, 14 Jan 2002 16:59:39 +0200
  • Message-id: <001101c19d0c$17819060$c8d341c1@xxxxxxxxxxxx>
Hello

I thought of inform/enquire on the following,

i installed suse 7.3 with three network cards such as

eth0 192.168.0.2 netmask 255.255.255.240 gateway 192.168.0.1
eth1 192.168.0.129 netmask 255.255.255.192
eth2 192.168.0.193 netmask 255.255.255.192

now after i installed the system i noticed that for some reason suse
configures
eth1 with a default route in /etc/route.conf

---snip--
FW:~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.0 * 255.255.255.240 U 0 0 0 eth0
192.168.0.0 * 255.255.255.240 U 0 0 0 eth1
192.168.0.192 * 255.255.255.192 U 0 0 0 eth2
192.168.0.128 * 255.255.255.192 U 0 0 0 eth1
default 193.64.53.1 0.0.0.0 UG 0 0 0 eth0
----snip---
so naturally first what i did to verify the case in added the following
route,
----snip---
route add -net 192.168.0.0 netmask 255.255.255.240 dev eth0
----snip---
and got the following
----snip---
FW:~ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.0.0 * 255.255.255.240 U 0 0 0 eth0
192.168.0.0 * 255.255.255.240 U 0 0 0 eth0
192.168.0.0 * 255.255.255.240 U 0 0 0 eth1
192.168.0.192 * 255.255.255.192 U 0 0 0 eth2
192.168.0.128 * 255.255.255.192 U 0 0 0 eth1
default 193.64.53.1 0.0.0.0 UG 0 0 0 eth0

----snip---
after i added the route, i was able to access ip addresses that belong to
the
subnet which is in between my linux box and the router,

when i noticed that for some reason eth1 was responding instead of my
default eth0
to tracerouting and pinging, i looked int /etc/route.conf and found that the
configuration
reffered to eth1 instead of eth0, i corrected that rebooted the system (ok i
could have done rcroute restart)
and i didnt have that routing problem anymore,

my question is, why does suse configure route.conf with eth1 instead of eth0
since its the default
route with access to the gateway??
my second question is where and to which file can i add command syntaxes to
be executed
upon the startup of the system and before the firewall script is run? whats
in question is if
i decide to add virtual interfaces such as
ifconfig eth2:0 172.16.0.1 netmask 255.255.0.0 up
ifconfig eth2:1 10.0.0.1 netmask 255.0.0.0 up
ifconfig eth2:2 192.168.1.0 netmask 255.255.255.0 up
where do i add these syntaxes??(other than in rc.config?)

eagerly waitting for enthusiastic replies ;)

regards
O.


< Previous Next >
This Thread
  • No further messages