Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-10-2004, 02:19 AM   #1
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 peer dev eth0
ip route add default via 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
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 eth0:1 eth0:2 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..
ifconfig eth0:1 hw ether 0c:23:44:5e:ff:90 ...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:03 AM.

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