Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.