Results 1 to 4 of 4

Thread: sub interfaces

Hybrid View

  1. #1

    sub interfaces

    Hi,

    What would be the purpose of having multiple sub interfaces on an ethernet adapter? For instance, eth0:1, eth0:2, etc

    I'm thinking this is if you own multiple IP addresses, you can assign an IP to a virtual device such as eth0:1. Am I right?

  2. #2

    Re:sub interfaces

    yeah you can do more than one ip. so let's say I'm running a webserver on 192.168.1.1 and a mail server on 192.168.1.2 and i need to take the webserver down for a little while. i could have the mail server take 192.168.1.1 but keep it's 192.168.1.2 and just have a dummy webpage that explains it being down. this way i don't need another nic.

    or it can be used to sniff someone elses traffic through a switch, but arpspoof is a cleaner method of doing this.

    [edit:moving to networking]

  3. #3

    Re:sub interfaces

    Don't most shell companies have a sub interface for each public ip address they have when setting up vhosts? BTW, sorry for posting this in the wrong forum.

  4. #4

    Re:sub interfaces

    no problem for posting in the wrong forum.

    i'm not sure what you are asking. you mean when a web hosting company offers a bunch of different sites on one computer? this is done not by ip but by apache. (if i go to www.foo.com first i resolve to ip and that's 1.2.3.4 then i connect and send my request but also a Host: www.foo.com. then it knows foo.com is what i want. then I go to www.bar.com with ip 1.2.3.4 and i send Host: www.bar.com and it knows i want bar.com)

Similar Threads

  1. iptables, forwarding between interfaces
    By yates in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 12-07-2012, 04:01 PM
  2. MOVED: sub interfaces
    By gorn in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 03-15-2003, 05:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •