disabling an interface with ifconfig

Discussion in 'Mac Basics and Help' started by mark2288, Aug 5, 2009.

  1. mark2288 macrumors regular

    Joined:
    Jan 11, 2006
    #1
    Hi all,
    I have a problem with my Mac - I have VMWare Fusion installed and it has created two interfaces so my virtual machines can get network access, vmnet1 and vmnet8 (these are listed when I run ifconfig). I'm not using VMWare Fusion now, and need to force these interfaces off - network administrators say I am leaking packets that match the addresses those two interfaces use. Is the command as easy as:

    ifconfig vmnet1 down

    Or what should I do to forcefully turn off these interfaces so no traffic goes out through them. What should I then do to re-enable them?

    Thanks!
     
  2. LTX macrumors regular

    LTX

    Joined:
    Dec 25, 2008
    Location:
    Vancouver, BC, Canada
    #2

    Since those interfaces are listed when you do ifconfig, then I'm pretty sure that yes, they will be disabled. Don't forget sudo in front of that (sudo ifconfig vmnet1 down). You would then do "sudo ifconfig vmnet1 up" to turn that back on when you want it enabled.

    You could also try pinging the VM interface's address when the VM is started, turn the interface off, then ping it again. If the first one succeeds, and the second one fails, you're good.
     

Share This Page