LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-10-2004, 02:19 AM   #1
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
iproute2 rounting


Hi all,

My ISP uses iproute to route me out on the internet. The problem is that i need mo make a bandwith measurmnet and i can make a trafic log only on one IP, the others are routed from the ISP to me and i use postrouting and preroutind dnat and snat to use them.

How can i make so i can log the others ip's. here is how the ip is set up


ip addr add zzz.yyy.xxx.185 peer zzz.yyy.xxx.184 dev eth0
ip route add default via 193.230.207.184 dev eth0

i do have another 3 ip's and i can;t quite use them or to log trafic on them

Thx in advance
 
Old 06-14-2004, 02:26 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The usual way is to add the extra ip numbers as virtual interfaces..
eg
xx.xx.xxx.231 eth0:1
xx.xx.xxx.232 eth0:2
xx.xx.xxx.233 eth0:3

then you can refer to them differently with iptables and iproute2..

They all have the same MAC address, unless you wish to make that different for each as well..
eg
ifconfig eth0:1 xx.xx.xxx.231 hw ether 0c:23:44:5e:ff:90 ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in iproute2 alvi2 Linux - Networking 1 06-13-2005 06:13 PM
Help with iproute2 warwolf Linux - Networking 1 05-13-2005 09:25 AM
iproute2 package Ipolit Slackware 1 12-12-2004 08:40 AM
Problem installing iproute2 greklas Linux - Networking 2 10-21-2004 07:39 AM
installing iproute2 lwinkenb Linux From Scratch 2 04-12-2004 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration