The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Some Linux network config help needed by Control 2006-09-07 02:00:50
OK, here's the situation:

I use the same laptop at home and at w*rk (SuSE 10.1, KDE 3.5). At home, the setup is as follows

IP adress provided by dhcp
default GW is the IP of my router (set by hand)
DNS IP's from my prvider (also set by hand)
no proxies used
hostname Ganymede

at work, it looks quite different

IP fixed (entered by hand)
default GW also entered by hand
DNS IP's from the Insitute
must use proxy for http and ftp
hostname a cryptic alphanumeric alphabet soup

Now, I have no trouble clicking through all the necessary menus in YaST, and both configurations work without any trouble. However, it's annoying to do this every morning and evening. I don't want to set up two profiles, so I was looking towards creating two small shell scripts, "ifhome" and "ifwork", that would switch the things for me.

So far, I think I've figured out how to set the I adress to a fixed IP with 'ipconfig eth0 address xx.xx.xx.xx' and also the default GW with 'ipconfig eth0 broadcast xx.xx.xx.xx'.

However, I'm stumped as to how I can use 'ifconfig' to tell it to listen to dhcp for its IP.
Further, I have no idea where to start looking for the appropriate command to switch proxies on and off, or to change DNS servers. Any pushes in the right direction would be appreciated muchly.
[ Reply ]
  Here it comes (most of it) by leonidus2006-09-07 02:08:33
    Thanks, that's a great start by Control2006-09-07 02:24:25
      Come to think of it, proxies may be managed by by ttlogic2006-11-19 12:55:59
        Found them in opera6.ini by Control2006-09-07 02:53:27
      Don't copy the files, just symlink by Stuka2006-09-07 07:53:40
  Some small pointers by ttlogic2006-09-07 02:17:02
    .. whose info would be not acceptable by anymouse2006-09-07 02:19:18
  Other idea for proxies by anymouse2006-09-07 02:32:03
  Hahahaaaaaa! It works. by Control2006-09-07 05:13:57

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)