Results 1 to 6 of 6

Thread: Same IP for eth0 and wifi0

  1. #1
    Join Date
    Jul 2009
    Posts
    69

    Same IP for eth0 and wifi0

    I have a ubuntu box which i use to connect to a local area connection where we friends play game and a lot of file sharing. Is it possible that i assign the same ip to my eth0 and wifi0? I don't want my friends getting confused with which ip i am using. Please help...

  2. #2
    Join Date
    Mar 2009
    Posts
    599

    Re: Same IP for eth0 and wifi0

    On a same computer you cannot provide same ip address to more then one network adapter. You cannot use the same ip for different computers too... All ip address must be unique...

  3. #3
    Join Date
    Jul 2009
    Posts
    69

    Re: Same IP for eth0 and wifi0

    I want to give the same ip to both the interfaces because there will be no confusion. Also i will use any one connection at a time... Is it possible in such case? Please help...

  4. #4
    Join Date
    Jan 2009
    Posts
    710

    Re: Same IP for eth0 and wifi0

    In such case it is possible, but you will have to configure your interface when you use it, you cannot assign one ip to more then one interface at a time... You will have to change the ip of wifi0 before you assign its ip to eth0.

  5. #5
    Join Date
    Aug 2009
    Posts
    2

    Re: Same IP for eth0 and wifi0

    Code:
    sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0
    when done:
    Code:
    sudo ifdown eth0
    Code:
    sudo ifconfig wifi0 192.168.1.1 netmask 255.255.255.0
    when done:
    Code:
    sudo ifdown wifi0
    Hope this helps.

  6. #6
    Join Date
    Jan 2006
    Posts
    3,792

    Re: Same IP for eth0 and wifi0

    You can follow this method First create a backup of your network interfaces file by typing the following in the console: 'cp /etc/network/interfaces /etc/network/interfaces.backup'
    Type 'vim /etc/network/interfaces' to hit enter. Press 'i' to enter into insert (editing) mode. Scroll down to seer network interface card in the file and alter 'iface eth0 inet dhcp' to 'iface eth0 inet static'.append the following lines, substituting the IP address numbers with your desired configuration:

    address 192.168.0.10
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1
    dns-nameservers 216.10.119.241

    Save and exit from the file by pressing Escape then ":wq" and Enter
    Type 'ifdown eth0' and press enter.Type 'ifup eth0' and press enter.

Similar Threads

  1. Error on my Debian system saying eth0 error
    By Triple JJJ in forum Networking & Security
    Replies: 5
    Last Post: 23-11-2010, 12:03 AM
  2. No eth0 or wlan0 access in vmware
    By Metoac in forum Networking & Security
    Replies: 6
    Last Post: 11-05-2010, 09:00 AM
  3. Internet sharing on eth0 from eth1
    By _Gentoo_Nile_ in forum Operating Systems
    Replies: 3
    Last Post: 11-09-2009, 07:15 PM
  4. Problem with ifcfg-eth0 in Fedora
    By LinuxeD in forum Operating Systems
    Replies: 3
    Last Post: 04-08-2009, 05:52 PM
  5. Failed to bring up eth0 in Ubuntu Virtual Machine
    By tombman in forum Networking & Security
    Replies: 3
    Last Post: 07-07-2009, 03:13 PM

Tags for this Thread

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
  •  
Page generated in 1,714,264,797.27424 seconds with 17 queries