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.
i want to assign 170.1.1.56 ip to eth0 as eth0:0 without installing a 3rd lan card.this eth0 and eth0:0 will talk to each other.today i browse internet on 192.168.1.1 and i wanted to browse on 170.1.1.1 sunbet
so please suggest any ip table script or any commands me. i know how to add another ip to lan card by this command ifconfig eth0:0 170.1.1.1 netmask 255.255.255.0 up.i want to browse internet on 192.168.1.1 and 170.1.1.1 subnet without any problem.also an iptable script for ftp connectivity and outside udp connectivity.
i don't have any free ports on the hub,that is why i am asking you the iptables script for this.And if i add third lan card eth2 170.1.1.56 ip on this give me the iptables script for 3rd lan card which shares the internet on 192.168.1.1 and 170.1.1.56 ip from my external 202.88.210.4 ip.
give me both iptables script for eth0:0 and eth2 lan card
please help me i have little knowledge of linux proxy server.
What you ask couldn't be more obscure. Why exactly assigning "170.1.1.58" as a second ip would free a port on the hub? In any way, what you ask can't be done (or don't have anything to do with) iptables. Assign your ip , then make up the "routing" (you will need the command "route", try "man route" for help, there is some example) for this ip.
If you really believe what you ask is possible (in network sense), providing schemas and details of what you try to do would probably help us.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.