noname2, каква мрежа се опитваш да изградиш? При поставянето на два интерфейса в една и съща мрежа, как си представяш да стане маршрутизирането през тези два интерфейса? Или то е изключено (ip_forward 0/1?). Хубаво са ти казали да покажеш route таблицата при вдигнати и двата интерфейса. Поясни каква е крайната цел на заниманието и каква точно топология вързваш? Успех!
Целта е да направя прокси на машина с 2 карти, като клиентите ще се свързват през едната карта, а изходящия трафик ще минава през другата.
[root@localhost /]# cat /proc/sys/net/ipv4/ip_forward
0
[root@localhost /]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(

and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 0
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename
# Useful for debugging multi-threaded applications
kernel.core_uses_pid = 1
# Controls the use of TCP syncookies
net.ipv4.tcp_syncookies = 1
# Controls the maximum size of a message, in bytes
kernel.msgmnb = 65536
# Controls the default maxmimum size of a mesage queue
kernel.msgmax = 65536
# Controls the maximum shared segment size, in bytes
kernel.shmmax = 4294967295
# Controls the maximum number of shared memory segments, in pages
kernel.shmall = 268435456
uname -a
ifconfig -a
netstat -rn
[root@localhost /]# uname -a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux
[root@localhost /]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:DA:6F:48:33
inet addr:192.168.104.251 Bcast:192.168.104.255 Mask:255.255.255.0
inet6 addr: fe80::250:daff:fe6f:4833/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:92061 errors:0 dropped:0 overruns:1 frame:0
TX packets:1160 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8380650 (7.9 MiB) TX bytes:128990 (125.9 KiB)
Interrupt:9 Base address:0x6400
eth1 Link encap:Ethernet HWaddr 00:10:B5:AD:BB:22
inet addr:192.168.104.252 Bcast:192.168.104.255 Mask:255.255.255.0
inet6 addr: fe80::210:b5ff:fead:bb22/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:28995 errors:0 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3017366 (2.8 MiB) TX bytes:1428 (1.3 KiB)
Interrupt:10 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2464 errors:0 dropped:0 overruns:0 frame:0
TX packets:2464 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:204668 (199.8 KiB) TX bytes:204668 (199.8 KiB)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[root@localhost /]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.104.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.104.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.104.2 0.0.0.0 UG 0 0 0 eth0