Skip navigation
This discussion is archived

virtual interfaces and multiple ip's questions

3041 Views 3 Replies Latest reply: Mar 12, 2007 6:50 AM by gdiscenza RSS
Eby Mani Calculating status...
Currently Being Moderated
Mar 11, 2007 4:00 AM
I've created virtual/fake interfaces from Network->Network Port Configurations -> Duplicate.

Is there a way to do this thru command line ? What is the correct term for this, TAP interface?

ok, the DHCP server(another OS X server or router) won't assign ip's to these "virtual interfaces or what ever", because they all have the same MAC address.

Using "DHCP with Manual address" or set up ip's manually works.

Is there a way to create virtual MAC addresses and associate these ip's to it? cause i plan to use port security feature.

I'm using 10.3.9 server, any fink or darwin port packages are also welcomed. Thanks in advance.

Power Mac G3 Server   Mac OS X (10.3.9)  
  • Camelot Level 8 Level 8 (45,670 points)
    Currently Being Moderated
    Mar 11, 2007 7:25 PM (in response to Eby Mani)
    >Is there a way to do this thru command line ? What is the correct term for this, TAP interface?

    You have two ways of assigning multiple IP addresses, depending on quite what you want to do.

    If you just want multiple addresses, you can use ifconfig along with the 'alias' parameter:

    <pre class=command>ifconfig en0 1.2.3.4 netmask 255.255.255.0 broadcast 1.2.3.255 alias</pre>

    This will add the address 1.2.3.4/24 to en0 in addition to any existing addresses.

    If you truly want multiple interfaces (en0, en1, en2, etc.) then use networksetup:

    <pre class=command>networksetup -createnetworkservice "My New NIC" "Built-in Ethernet 1"</pre>

    which will create a new network port called 'My New NIC' on en0.

    >ok, the DHCP server(another OS X server or router) won't assign ip's to these "virtual interfaces or what ever", because they all have the same MAC address.

    Of course. Servers shouldn't run via DHCP anyway, so it's largely a moot point.

    >Is there a way to create virtual MAC addresses and associate these ip's to it? cause i plan to use port security feature.

    I don't believe so. MAC addresses are set at the hardware level, not at the virtual port level. You should use static addresses for all interfaces.

    > any fink or darwin port packages are also welcomed

    Really? Not on my servers they're not, but each to his own
    Mac OS X (10.4.8)
  • gdiscenza Level 1 Level 1 (90 points)
    Currently Being Moderated
    Mar 12, 2007 6:50 AM (in response to Eby Mani)
    It seems much of Free, Net & Open BSD
    commands are not included with OS X, like bridge,
    veif, etc... for some reason.


    That I can answer...OS X was not built on a BSD foundation, it was built on an OS that Apple owned. Mach was the underlying unix platform for the NeXT, which Apple bought when Steve Jobs came back on board. Having been a NeXT administrator (long ago) I can tell you that many of the BSD features that I was used to were absent from Mach, so I don't expect to see them in OS X.

    Sorry for the ancient history lesson, just trying to clarify the lack of services you are used to seeing.

    -Gregg
    G4 Cube, Mac OS X (10.4.8)

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.