SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a little problem. Every time i turn on my computer i have to open Konsole and type dhcpcd eth1 to connect to the Internet. After I do this everything works like a charm.
I wonder if i can automate this with a script on startup? In that case how do you do it? Or is there an other easy solution?
Yes, I've set everything up right. Everything works like it should. I use Suse 9.3 on a portable, with a wireless network. I can connect to the router without making the dhcpcd eth1 command, but I can't access the Internet.
You might try printing out the output of ifconfig eth1 before and after running dhcpcd eth1. Compare the two printouts.
Are you sure that you have dhcp selected for the 'eth1' interface. It should be getting the IP address and have the other information like gateway address and dns addresses set by the dhcp server when you startup. What is on eth0? Do you have each interface on separate subnets? My main point however is that unless you want set up the network settings on an interface manually, you need to select DHCP for each interface, not just one of them.
It may be better to find out what is not working correctly, rather than wedging in a script, which shouldn't be necessary.
Yes, I've set up all the network connections correctly. I don't understand why it doesn't work. One theory is that it's blocked by the firewall.. I've tried to figure out this firewall, but I don't understand much about it. Anyway, when I run the dhcpcd command the output says something about setting up firewall rules.. So I think perhaps it comes from that. Could I be right?
To Anomie: if I add a linue in the ~/.profile file how can I do this when my profile doesn't have access to these commands? I meen I have to be root to execute these commands, so if I insert it in the ~/.profile file it won't work..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.