adress traffic to tap0


 
Thread Tools Search this Thread
Special Forums IP Networking adress traffic to tap0
# 1  
Old 01-25-2012
adress traffic to tap0

Hello, I have a problem of routing traffic on two virtual interfaces I have created on my machine (CentOs6)

By using tunctl I created two virtual interfaces tap1 and tap2

let s imagine I gave them two different address

tap1: 10.1.1.1 net 255.255.255.0

tap2: 10.1.2.1 net 255.255.255.0

I m receiving traffic on my real interface eth0: 192.168.1.23 net 255.255.255.0

I tried by using brctl and iptables to send some traffic to tap1 and others to tap2.. unfortunately i m not able to get how to do it.

An example of splitting may be.. let s send all the icmp packets to tap2 and the others on tap1. Is it possible somehow? Can you help me with some instructions?

Regards
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sort file with email adress

Hi All, I have a file which is "|" pipe delimited. The file has 3 fields. the last field contains email ids which has different host names. I want to sort the file based on host name, which is in 3rd filed and needs to create a file for each host. For example, if out of 1000 records, 10... (6 Replies)
Discussion started by: ace_friends22
6 Replies

2. Shell Programming and Scripting

Trying to get an IP adress from a file

This is probably a real n00b question but i`m not able to figure it out. I have a folder of configuration files that contain IP-adresses. The line i`m interested in looks like this: IP_ADDRESS="123.123.123.1123" Some have muliple ip adresses, so the line will look like : ... (5 Replies)
Discussion started by: DaneV
5 Replies

3. IP Networking

Changing the Ip adress permanently

well i'm trying to change the ip adress on an old alphaserver runing tru64 4.0F using the ifconfig hme0 IP_ADDRESS mask MASK broadcast BROADCAST and when i check it using ifconfig -a it shows the new ip and all is well but when the server is rebooted it reverts back to the old ip (3 Replies)
Discussion started by: randUSR()
3 Replies

4. Shell Programming and Scripting

To find the IP adress in the log file

Hi, I need to find out the repeated IP address from the apache log file from my box. I did try to come out with the script, but I could not grep out the repeated Ip Address from the error_logs and need to redirect to a file. Can you guys please help me out of this problem. Thanks in... (9 Replies)
Discussion started by: gsiva
9 Replies

5. OS X (Apple)

Obtain Mac Adress in crontab

hello, I need to obtain the Mac Adress and write him in a file. I'm trying to do this with a command in crontab, with ifconfig, but it's only possible do this if i disabled the password for run the command, but than i have security problems. I'm searching for a script (.sh) that allows me to... (5 Replies)
Discussion started by: Pedro Almeida
5 Replies

6. Shell Programming and Scripting

Problem with regexp for IP-Adress Pattern

Hi all Unix Gurus! Since hours (even days :-)) I'm trying to find the correct pattern to search for IP addesses in text files. The pattern to find a IP address itself is not too difficult: '((||1{2}|2|2{2})\.){3,}(||1{2}|2|2{2})' BUT, of course the above pattern is also matching lines like... (9 Replies)
Discussion started by: desertchannel
9 Replies

7. HP-UX

Change IP Adress

I want change my IP address and hostname in my machine by use the console. Can any one tell me how can I execute that by command ? Thanks & Regards (1 Reply)
Discussion started by: magasem
1 Replies

8. AIX

Capture IP Adress

hello I need for a script to capture the ip address from the connected user. I have 5 logical partitions. With "who", i have the ip adress, but only for 2 servers. Do you know another command to know the ip address of connected clients ? thank you (14 Replies)
Discussion started by: pascalbout
14 Replies

9. Solaris

IP-Adress

Hello together how can I find a ipadress from a login into remote system console? Thanks a lot Urs (1 Reply)
Discussion started by: MuellerUrs
1 Replies

10. UNIX for Dummies Questions & Answers

MAC-Adress

Hello I need to show my MAC-Adress on a Unix System, is there someone that know how? (2 Replies)
Discussion started by: nkochr
2 Replies
Login or Register to Ask a Question
DNROUTE(8)						      System Manager's Manual							DNROUTE(8)

NAME
dnroute - DECnet Routing Daemon SYNOPSIS
dnroute [options] Options: [-dvV2Dtnhr] DESCRIPTION
dnroute is a daemon that manages the DECnet routing tables to provide a simple but probably useful routing policy. dnroute listens for incoming routing messages and adds routes in the kernel for non-local areas that it sees. Routes will be modifed according to these messages so that the lowest cost route that is up will always be used. Routes to locally accessible nodes (it those in the neighbour table) will also be added. If you want to keep manual control of the route to a particular area, then add a line into dnroute.conf. eg: manual 26 will disable dnroute's setting of routing tables for that area. dnetinfo will still show the route that would have been set with (M) on the line to show it has been overidden. To implement its routing policies dnroute assumes that all interfaces on the system have a cost of 4. To change this add lines in /etc/dnroute.conf for each of the interfaces you need to change. eg eth0 6 eth1 8 tap0 10 A script called dnetinfo is provided that gets the routing information from dnroute and displays it on stdout in a format similar to the VMS command SHOW NET/OLD. OPTIONS
-d Don't fork and run the background. Use this for debugging. -v Verbose. Log route changes to syslog. -D Debug log. Writes debugging information to stderr. Only useful with -d. -h -? Displays help for using the command. -r Send DECnet routing messages showing the state of local nodes. -2 Send DECnet level 2 (area) routing messages. Implies -r. -t <secs> Timer to send routing messages on. Defaults to 15 seconds. -n Do not set up routes or send routing messages, just monitor the network. Useful for testing. -V Show the version of dnroute. SEE ALSO
dnetd.conf(5), ip(8) DECnet utilities March 30 2006 DNROUTE(8)