systemd -- static network IP(s) for headless server

Issues Related to Networking (Wired and Wireless)

Moderator: Moderators

systemd -- static network IP(s) for headless server

Postby anomaly65 » Thu Apr 24, 2014 20:56

Hi all,

I'm still calling systemd half baked, as there are many a script/setup which haven't been transitioned from openrc...and I'm familiar with solaris idea of systemd, but we're not there yet :cry:

that said, anyone got a working "static IP and route" setup for systemd they'd care to share? The typical varients (NetworkManager) seem to work on a system with a GUI, but I've got half a dozen systems without heads in remote locations and the idea of rebooting any of them is not pleasant. The one in my garage is reachable, but still gives me issues as is, requiring manual intervention. Some of my servers have multiple IP's so suggestions there are appreciated as well :lol:

Any suggestions, pointers, or examples would be most welcome! 8)

Thanks in advance!
andy
--
Use handrails on stairs. A nasty fall face first changes your point of view quickly, and mine permanently :-)
anomaly65
Technological Hen
 
Posts: 302
Joined: Sat Nov 17, 2007 15:37

Re: systemd -- static network IP(s) for headless server

Postby hoosierpeschke » Thu Apr 24, 2014 22:06

I have something similar using NetworkManager (I miss ifnet). I have found out my reboots are messing up my routing table, information on manually configuring routes is a little tricky as I'm not that familiar routing tables. That being said, here are my files for NetworkManager. May be a start for you. I use this server as a router.

The id should match the filename. Use uuidgen for the uuids.

/etc/NetworkManager/NetworkManager.conf
Code: Select all
[main]
no-auto-default=<mac address 1>,<mac address 2>,

[keyfile]
hostname=<put your hostname here>


/etc/NetworkManager/system-connections/EXT_IF (You can name this anything you want, this is just how it shows up in the NetworkManager).
Code: Select all
[802-3-ethernet]
duplex=full
mac-address=<mac address>

[connection]
id=EXT_IF
uuid=76191f0b-ef81-4eb2-8b53-2137b30a1bcf
type=802-3-ethernet
timestamp=1398050742

[ipv6]
method=auto

[ipv4]
method=auto


/etc/NetworkManager/system-connections/INT_IF
Code: Select all
[802-3-ethernet]
duplex=full
mac-address=<mac address>

[connection]
id=INT_IF
uuid=cb933fdb-a59e-4495-bdd7-8ffc0fe6a49b
type=802-3-ethernet
timestamp=1397342629

[ipv6]
method=auto

[ipv4]
method=manual
dns=<dns ip address>;
dns-search=<dns search domain>;
address1=<ip address/subnet>,<gateway ip address>
address2=<address 2, same style as address1>
address3=<etc...>
address4=<etc...>


There are also several other things that had to be configured. You will also have to manually configure /etc/resolvconf.conf to set up /etc/resolv.conf the way you want it.
hoosierpeschke
Baby Hen
 
Posts: 15
Joined: Wed Apr 06, 2011 14:13
Location: Chicagoland

Re: systemd -- static network IP(s) for headless server

Postby anomaly65 » Sat Apr 26, 2014 2:22

thanks hoosierpeschke,

it still doesn't stick, but I think I'll retry on a virtualbox install. ;-) the kids bedrooms are above the garage, and I prefer to work there late at night, but wish not to disturb them....

will post results in a day or two.

Cheers,
andy
--
Use handrails on stairs. A nasty fall face first changes your point of view quickly, and mine permanently :-)
anomaly65
Technological Hen
 
Posts: 302
Joined: Sat Nov 17, 2007 15:37


Return to Networking and Wireless

Who is online

Users browsing this forum: No registered users and 1 guest

cron