Find the answer to your Linux question:
Results 1 to 3 of 3
I have a usb device that is setup to use a networking interface. When I connect the usb device, ifconfig automatically shows a new interface "usbX", and it has an ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    3

    usb/ethernet ip address selection


    I have a usb device that is setup to use a networking interface.

    When I connect the usb device, ifconfig automatically shows a new interface "usbX", and it has an assigned IP address, e.g. "192.168.X.1" - yes, the "X" is the same number between the address and the interface name.

    Each time I connect the usb device, it gets a different ip address...

    192.168.9.1, 192.168.10.1, etc (actually the device address ends in .2, the PC is .1)

    How do I configure this device to always have the same address? Or maybe it's more accurate to ask, how do I configure linux to always assign the network address with this device?

    Thanks.

  2. #2
    Linux Engineer Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    773
    Well, if I had to do this, I would look into the /etc/network/interfaces file. But as even the interface name changes, this could become a major pain in the arse to configure. Good luck!

  3. #3
    Just Joined!
    Join Date
    Jun 2010
    Posts
    15
    Maybe you can add a crond script to detect your usb device, When It detect your device is insert , reconfig the ip addr . When the device is removed ,start detect. But
    I think it is not a goodway to do it . ^_^

  4. $spacer_open
    $spacer_close

Posting Permissions

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