You are not logged in.
Hello
I now have no need to use netcfg so am going to switch to using the settings in /etc/rc.conf. I have the line ifconfig eth0 192.168.2.1 in my netcfg profile. How can I set it up while using /etc/rc.conf so that I can give eth0 an ip address on start up.
Thanks for your help
Offline
rc.conf has a man page, everything is explained there.
Offline
acid,
If you look at your rc.conf, it is well commented throughout on how to setup your network connections for DHCP.
Cheers,
Czar.
Laptop: Lenovo X1 Carbon, Core i7 2.0Ghz, 8GB RAM, Gnome 3.16
Offline
Yes I read it but I assumed I could use this to connect to a wireless network and share the connection through eth0. This is what I do now using netcfg but i don't use any other netcfg profiles now and it seems to really slow down starting up my laptop even in the backgound. So I guess I can't do it this way and should just leave it the way it is?
Offline
Not sure I understand what you're trying to do, but rc.conf alone doesn't support wireless networking, just a single wired connection.
Offline
It sounds like you are trying to setup masquerading, which I do not believe is supported through rc.conf. You probably need to look at something along the lines of iptables to setup some rules (though, I expect karol may be able to provide some better insight).
Cheers,
Czar.
Laptop: Lenovo X1 Carbon, Core i7 2.0Ghz, 8GB RAM, Gnome 3.16
Offline
Offline
Sorry for not being clear
I already have this all setup using netcfg and following the simple stateful firewall guide in the wiki. I have been using this for a while now and it works I just thought there might be another way of doing it because my computer takes quite a bit longer starting up using netcfg.
Offline
Have you tried backgrounding net-profiles -> '@net-profiles'?
What other daemons do you have in your DAEMONS array in rc.conf?
Offline
Yes
syslog-ng (not sure what this is so I have not touched it), dbus, @iptables, @net-profiles, @alsa
Backgrounding does help alot but it still takes a while for my login manager to appear
Offline
General forum advice: provide all relevant details when you're asking for help. Your initial post here mentions eth0 only.
Connecting to wireless networks can take time - that is most likely the cause of the delay you are experiencing.
Offline