Opened 6 months ago

Last modified 4 weeks ago

#14908 new bug

net_server mixes up interfaces in settings file

Reported by: pulkomandy Owned by: axeld
Priority: normal Milestone: Unscheduled
Component: Servers/net_server Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

/system/settings/network/interfaces:

interface       /dev/net/usb_ecm/0 {
        address inet {
                address 192.168.4.2
                mask    255.255.255.0
        }
}
interface       /dev/net/rtl81xx/0 {
        address inet {
                auto_config     true
        }
}

USB interface currently not connected. Static IP gets assigned to the second interface. I have to reset that one in Network preferences everytime, which does not seem to have any effect on the setting file. At next reboot, the problem is back.

Change History (4)

comment:1 by waddlesplash, 6 months ago

Probably a duplicate of #6351?

comment:2 by pulkomandy, 6 months ago

No, #6351 is/was exclusively about the DNS information, which isn't specific to a device, but extracted from DHCP fr each device, leading to some understandable confusion.

Here the setting entries are not bound to the right card, which is a more important bug.

comment:3 by Pete, 4 weeks ago

I'm tagging this on here, rather than in a new ticket, because I'd guess it's related. Apologies if I'm wrong. I've recently installed Beta1 (hrev52295+129), and find that it insists on using DHCP even though I want Static! It seems to ignore the ...settings/network/interfaces file, which has:

interface	/dev/net/iprowifi4965/0 {
	address	inet {
		address	192.168.1.6
		mask	255.255.255.0
		gateway	192.168.1.1
	}
}
interface	/dev/net/rtl81xx/0 {
	address	inet {
		address	192.168.1.16
		mask	255.255.255.0
		gateway	192.168.1.1
	}
}

Despite that file, it always assigns an arbitrary DHCP addrees on boot, and the Preferences correspondingly says 'DHCP'. If I change it to Static, with the desired IP, I just lose the connection, and at next boot it's back to DHCP. Strangely the file's timestamp indicates it was rewritten, but the contents seem to remain as I set them above.

I should add that I normally connect via WiFi, but when I connect a cable it behaves the same.

Last edited 4 weeks ago by Pete (previous) (diff)

comment:4 by kallisti5, 4 weeks ago

see https://dev.haiku-os.org/ticket/14626 as well. It was closed but I think that was premature.

Note: See TracTickets for help on using tickets.