search for: rt_table

Displaying 20 results from an estimated 127 matches for "rt_table".

Did you mean: rt_tables
2002 Nov 27
7
one dude about rt_tables
Can I add routes to rt_tables by hand with the vi editor? If I add a route to that file, it will be there if I reboot the box? I am sure there are stupid questions but I can''t find the answer into the papers I have here. Luis Miguel Cruz Miranda. CCNA - Systems Administrator _______________________________________...
2004 Sep 08
0
Can I do this?
...as a default gateway? Do I have to remove it? 2. In the scenario with 4 NICs, one routing table each, and another routing table doing load balance, Do the tables that imply routes that are being used by the load balance routing table have to be removed? p.e. : echo 255 local > /etc/iproute2/rt_tables echo 254 main >> /etc/iproute2/rt_tables echo 253 default >> /etc/iproute2/rt_tables echo 0 unspec >> /etc/iproute2/rt_tables echo 200 balanceo2 >> /etc/iproute2/rt_tables echo 201 cable >> /etc/iproute2/rt_tables echo 202 cable2 >> /etc/iproute2/rt_table...
2005 Oct 29
2
iproute create policy routes after reboot
Which files do I need to edit in order to initialize a route after a reboot. I have a 802.1q tagged VLAN interface which I need to create a rule, and a route for. I see on my CentOs 4.2 box that in /etc/iproute2 there are the following files. I realize that I can add my tables to /etc/iproute2/rt_tables, but when I want to create a rule I am not sure where to put the information for the next reboot. [root at smtcormx01 ~ ]# ls -la /etc/iproute2/ total 104 drwxr-xr-x 2 root root 4096 Oct 28 13:44 . drwxr-xr-x 87 root root 12288 Oct 28 21:47 .. -rw-r--r-- 1 root root 299 Feb 21 2005 rt_...
2005 Jul 09
1
Problems with iproute2
...o now have 2 ISP, one DSL and one cabel. I want to use the DSL as my primary and only use the cabel-modem if the DSL fails. The setup is: IP1 -> Router -> NAT_IP1 -> eth0 -> eth2 (LAN) IP2 -> Cable-Modem -> eth1 -> eth2 (LAN) I wrote the following in my /etc/iproute2/rt_tables ip rule add from NAT_IP1 lookup 1 ip route add 10.1.0.0/16 via 10.1.1.1 table 1 ip route add 0/0 via NAT_IP1 table 1 ip rule add from IP2 lookup 2 ip route add 10.1.0.0/16 via 10.1.1.1 table 2 ip route add 0/0 via IP2 table 2 The problem is identical to http://www.samag.com/documents/s=1824/sam...
2006 Mar 28
4
[ ] IProute2 error ..
Dear all, I am having problem using iproute2 on my new Slackware 10.1 box. Here goes the problem: root@localhost:~# echo "200 DOONET" >> /etc/iproute2/rt_tables root@localhost:~# cat /etc/iproute2/rt_tables # # reserved values # 255 local 254 main 253 default 0 unspec # # local # #1 inr.ruhep 200 DOONET root@localhost:~# ip rule add from 10.255.255.0/24 table DOONET RTNETLINK answers: Invalid argument Weird .. i never experienced a...
2000 Nov 03
1
invalid table ID
Greetings The ip route how-to describes the following for setting up source routing #echo 501 uras.out >> /etc/iproute2/rt_table #ip rule add from 10.0.0.0/24 table uras.out The first line complains of a missing directory, which is simple fixed (create dir iproute2 in etc) The second line then reports Error: argument "uras.out" is wrong: invalid table ID The op sys is RH 7. I had exactly the same problem with 6....
2005 Dec 24
1
Simple routing configuration
...em, or maybe a bit of both? I''ve tried setting up the routing using ip route, using the command below, but to no avail. When I used these commands, I did not change any of my existing firewall configuration. Here are the ip route commands: echo "101 ISP_1" >> /etc/iproute2/rt_tables echo "102 ISP_2" >> /etc/iproute2/rt_tables ip route add 192.168.4.0/22 dev eth2 src 192.168.7.253 table ISP_1 ip route add default via 192.168.100.253 table ISP_1 ip route add 192.168.0.0/22 dev eth1 src 192.168.3.253 table ISP_2 ip route add default via 192.168.20.253 table ISP_...
2007 Feb 21
1
simple source policy routing not working
...wlan0 and everything from eth1 NATed to eth0: eth0 192.168.1.10/24 eth1 172.16.1.1/12 wlan0 192.168.10.190/24 I first tried this with two single hosts: iptables -A POSTROUTING -j MASQUERADE -o eth0 -t nat iptables -A POSTROUTING -j MASQUERADE -o wlan0 -t nat echo 200 Forw >> /etc/iproute2/rt_tables ip rule add from 172.30.230.230 table Forw ip route add 192.168.1.99 via 192.168.10.1 dev wlan0 table main ip route add 192.168.1.99 dev eth0 table Forw ip -statistics route flush cache ip route get 192.168.1.98 from 172.30.230.230 iif eth1 # 192.168.1.98 from 172.30.230.230 dev eth0 src 1...
2005 May 06
3
Multipath Routing in same subnet - Please take a look
Hello. I have the problem that I have two gateways on the same subnet, 80.237.244.1 and 80.237.244.33. Both gateways are 100 MBit cards, so I have 2 times 100 MBit to the Internet. The NIC in the server is a gigabit-card, so this card is easy able to use both gateways for outgoing traffic. Now I just want to use both gateways for my outgoing traffic but no matter what I do, it doesnt work. I
2004 May 21
2
fwmark / MARK / --set-mark syntax never run on my system! Search step by step help.
Hello! This arguments never run on my system, but I need this: #!/bin/bash -x echo "1" iptables -t mangle -p tcp -d 0/0 --dport 80 -j MARK --set-mark 2 echo "2" echo "201 T1" >> /etc/iproute2/rt_tables echo "3" ip rule add fwmark 2 table T1 echo "4" ip route add default via 192.168.21.2 dev eth1 table T1 echo "5" ip route flush cache Errors: debian:~# sh portroute 1 iptables v1.2.6a: no command specified Try `iptables -h'' or ''iptables --help&...
2011 Jan 24
1
iproute2 custom tables and rules the CentOS way...
Hi all; I have a custom iproute2 table and a few rules to go along with it (CentOS 5) -- I have added the table to /etc/iproute2/rt_tables. if-up and friends doesn't seem to handle this real gracefully. How are those of you out there doing something similar managing this customization? I don't really want to muck with /etc/init.d/network or the if-up scripts to avoid breaking upgrades. rc.local my best bet? Thanks, Ray
2004 Mar 31
0
load balance a file download across two connections - success!
...in my shell script: echo "balancing easynews..." EASYNEWS="140.99.99.100" $IPTABLES -A PREROUTING -i $IFI -t mangle -p tcp --dport 80 -j MARK --set-mark 1 $IPTABLES -A PREROUTING -i $IFI -t mangle -p tcp --dport 81 -j MARK --set-mark 2 # I manually added tables 206 and 207 to rt_tables, but for a one time config you could uncomment # the two lines below #echo 206 easynews1.out >> /etc/iproute2/rt_tables #echo 207 easynews2.out >> /etc/iproute2/rt_tables ip rule add fwmark 1 table easynews1.out ip rule add fwmark 2 table easynews2.out ip route add $EASYNEWS via $GWE1...
2006 Jan 15
1
Network configuration
....100.253/24 gw: 192.168.100.254 (ISP) eth1 ip: 192.168.3.253/22 gw: 192.168.20.253 (eth3) eth2 ip: 192.168.7.253/22 gw: 192.168.100.253 (eth0) eth3 ip: 192.168.20.253/24 gw: 192.168.20.254 (ISP) I have tried setting up routing using these commands: echo "ISP_1" >> /etc/iproute2/rt_tables echo "ISP_2" >> /etc/iproute2/rt_tables ip route add 192.168.4.0/22 dev eth2 src 192.168.7.253 table ISP_1 ip route add default via 192.168.100.253 table ISP_1 ip route add 192.168.0.0/22 dev eth1 src 192.168.3.253 table ISP_2 ip route add default via 192.168.20.253 table ISP_2 i...
2002 Sep 10
3
RE: 4 nic advanced routing question update
ok i will do it in text: 66.92.114.46 eth0 209.141.2.194 eth1 192.168.119.101 eth2 192.168.120.101 eth3 What i have is a linux box RH7.3 which will eventually run Shorewall Firewall. On this box there is eth0 66.92.114.46 conneted to isp1 and eth1 209.141.2.194 connected to isp2 It also has eth2 192.168.119.101 and eth3 192.168.120.101 which will connect to a failover appliance which has 2 wan
2006 Feb 20
2
question about traffic control
Hi, I have the following situation: 1 gateway box with 2 WAN interfaces (eth1 and eth2). 1 LAN interface eth0 default gateway is eth2 I want to route all traffic with destination protocol tcp 22 (ssh) NOT over the default gateway eth2 but force them to find it''s route over eth1. All other traffic must go the normal way over eth2. Is this possible with tc or an other tool? --
2007 Jan 21
2
mark and route traffic in a bridge
...| linux | --eth1------- clientes ---inet2(90.0.0.1)--------eth2-| | I have eth0 and eth1 bridged (eth2 is not bridged). I would to route www outbound clients traffic through eth2. This scheme works ? I wrote this scripts: a) add this line to /etc/iproute2/rt_tables 200 web b) I assign ip to eth2: /sbin/ifconfig eth2 90.0.0.2 c) Mark outbound www packets from clients: /usr/local/sbin/iptables -A PREROUTING -t mangle -m physdev --physdev-in eth1 -p tcp --dport 80 -j MARK --set-mark 2 d) I routing this marked packets /sbin/ip rule add fwmark 2 table...
2007 Jan 21
2
mark and route traffic in a bridge
...| linux | --eth1------- clientes ---inet2(90.0.0.1)--------eth2-| | I have eth0 and eth1 bridged (eth2 is not bridged). I would to route www outbound clients traffic through eth2. This scheme works ? I wrote this scripts: a) add this line to /etc/iproute2/rt_tables 200 web b) I assign ip to eth2: /sbin/ifconfig eth2 90.0.0.2 c) Mark outbound www packets from clients: /usr/local/sbin/iptables -A PREROUTING -t mangle -m physdev --physdev-in eth1 -p tcp --dport 80 -j MARK --set-mark 2 d) I routing this marked packets /sbin/ip rule add fwmark 2 table...
2006 Aug 18
3
iproute2, alternative tables, no default route: routing trouble for localhost
...Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 a1.a2.a3.a4 0.0.0.0 255.255.255.255 U 0 0 0 ppp0 b1.b2.b3.b4 0.0.0.0 255.255.255.255 U 0 0 0 ppp1 router # cat /etc/iproute2/rt_tables # # reserved values # 255 local 254 main 253 default 0 unspec # # local # #1 inr.ruhep 200 Servers 201 Clients 202 Club router # ip rule ls 0: from all lookup local 32763: from 10.10.100.101/24 lookup Club 32764: from 10.10.100.100/24 lookup Clients 32765: from 192....
2007 Sep 01
13
2 ISP connection sharing problem
...een then is around 1:30. both connections are from dhcp that is dynamic. configuration from 1 ISP remains same and from 1 changes. EXTERNAL_IP_2="201.81.219.95" EXTERNAL_NETWORK_2="201.81.219.0" EXTERNAL_GATEWAY_IP_2="201.81.219.1" echo 200 T1 >> /etc/iproute2/rt_tables echo 201 T2 >> /etc/iproute2/rt_tables ip route add 192.168.1.0 dev eth1 src 192.168.1.2 table T1 ip route add default via 192.168.1.1 table T1 ip route add $EXTERNAL_NETWORK_2 dev eth2 src $EXTERNAL_IP_2 table T2 ip route add default via $EXTERNAL_GATEWAY_IP_2 table T2 ip route...
2007 Aug 21
5
two providers
Hi to all i think this is not a new problem for this forum....but its newest for me as i m a new linux lerner. Even if it is new plzz....reply me ur answer..n if its already asked n have solution..plzz forward the solution. My problem is here mentioned: I have fedora core 4 as a linux server. there r two external links connected to this. the settings are as: eth0 ->for internal (that is