Dehs | anyone here know how to setup a static ip on edubuntu server 10.4.1? please dont ask me any random or pointless questions, not trying to be rude, ive just encountered several idiots here and want a quick answer, not wasted time | 17:34 |
---|---|---|
alkisg | Urm. Not the best intro, but ok, let's go through this | 17:36 |
alkisg | There are two ways, 1) with network manager and 2) with /etc/network/interfaces | 17:36 |
alkisg | Do you have any preference over those 2? | 17:36 |
Dehs | well ive been trying to use the /etc/network/interfaces file for a minute now but its asking for several variables im not familiar with | 17:37 |
alkisg | Dehs: can you use pastebin? | 17:37 |
Dehs | yeah gimme a sec | 17:37 |
alkisg | http://paste.ubuntu.com/ | 17:37 |
alkisg | Put there the following info: | 17:37 |
alkisg | cat /etc/network/interfaces | 17:37 |
alkisg | ifconfig -a | 17:37 |
alkisg | cat /etc/resolv.conf | 17:37 |
Dehs | http://paste.ubuntu.com/492250/ | 17:38 |
Dehs | put it in terminal? or pastebin? and sorry im kinda nubish lol | 17:39 |
alkisg | In the pastebin | 17:39 |
alkisg | You put the interfaces file, but paste the output of the other 2 commands too | 17:40 |
alkisg | (the interfaces file is wrong) | 17:40 |
Dehs | well yeah im missing info | 17:40 |
Dehs | but sec | 17:40 |
Dehs | here is the output of ifconfig -a | 17:41 |
Dehs | http://paste.ubuntu.com/492251/ | 17:42 |
Dehs | output of cat /etcv/resolv.conf | 17:43 |
Dehs | http://paste.ubuntu.com/492253/ | 17:43 |
Dehs | and im using dhcp as of right now so once you get me setup on the static and i restart i'll lose you for a moment :P | 17:44 |
alkisg | Dehs: you have 2 network cards, do you want a static ip on both of them or just on eth0? | 17:44 |
alkisg | Is that for ltsp? | 17:44 |
Dehs | static on just one | 17:44 |
Dehs | eth1 | 17:44 |
alkisg | OK, what IP do you want there? | 17:45 |
Dehs | 99.119.57.178 | 17:45 |
alkisg | Nope | 17:45 |
alkisg | That doesn't sound right | 17:45 |
alkisg | You currently have: eth0=99.119.57.178 and eth1=192.168.69.250 | 17:46 |
Dehs | its an isp assigned ip, one of 5 | 17:46 |
alkisg | So, do you want eth1 to take the ip of eth0? | 17:46 |
Dehs | is there a command to see which nic is in use? because im not sure exactly | 17:46 |
Dehs | it looks like eth0 is the active one apparently, but in the network manager, and my etc/network/interfaces file it lists eth1 o.O | 17:48 |
alkisg | eth1 is connected to the local network, eth0 to the internet | 17:48 |
alkisg | Can you describe your network setup? | 17:48 |
alkisg | I.e. where is eth0 connected and where is eth1 connected? | 17:48 |
alkisg | (switches, dhcp servers, routers etc) | 17:48 |
Dehs | dsl to netopia to switch to server | 17:49 |
alkisg | and the other nic? | 17:50 |
Dehs | same thing | 17:51 |
alkisg | They're both connected to the internet? | 17:51 |
alkisg | OK. Is netopia some kind of a router? | 17:51 |
Dehs | yes | 17:52 |
alkisg | Then, that router gets the external IP | 17:52 |
alkisg | (=99.119.57.178) | 17:52 |
alkisg | eth0 currently has the same IP, but it's useless | 17:52 |
alkisg | It doesn't have access to anything | 17:52 |
Dehs | actually netopia generates the ips | 17:52 |
alkisg | And, eth1 gets a local address from your router, and you access the internet from it | 17:53 |
alkisg | So, if I'm reading you correctly, you *don't* want a static ip, because netopia has it. | 17:53 |
Dehs | btw im just a tech here, im just relaying info from my boss in a wheelchair :P | 17:53 |
Dehs | no he wants the static ip, just on the one nic o.O sorry you both kinda have me lost | 17:54 |
alkisg | OK. I think it would break your internet connection, but sure, we can do that. | 17:54 |
alkisg | On which eth do you want it? | 17:54 |
alkisg | eth0 or eth1? | 17:55 |
Dehs | well how are we gonna do it without breaking the net first lol | 17:55 |
Dehs | oh i think i get you lol | 17:56 |
alkisg | If you're behind a router, you can't use a public IP | 17:57 |
Dehs | continue on | 17:57 |
alkisg | It doesn't make sense | 17:57 |
alkisg | But if you want to put a static IP, you can | 17:57 |
alkisg | You just won't have access to anywhere | 17:57 |
alkisg | E.g. do you know your public subnet mask? | 17:57 |
Dehs | 255.255.255.248 | 17:58 |
alkisg | OK. On which eth do you want that info? | 17:58 |
alkisg | On eth0 or on eth1? | 17:58 |
Dehs | eth1 | 17:58 |
alkisg | And, what's your gateway? | 17:59 |
alkisg | 99.119.57.something | 17:59 |
Dehs | 99.119.57.182 | 17:59 |
alkisg | Here's your interfaces, as you described it: http://paste.ubuntu.com/492263/ | 18:00 |
alkisg | Make backups etc because I doubt that that's valid info... :) | 18:00 |
alkisg | (for your current wiring) | 18:01 |
alkisg | I think that what you want to do is to setup your router to have a dmz server | 18:01 |
alkisg | i.e. for the router to have 2 IPs, and send whatever data it gets to the server | 18:01 |
alkisg | But the server won't have a public IP - the router will. | 18:02 |
Dehs | gimme a sec lemme try this :P | 18:02 |
alkisg | For anyone interested, I've packaged a chemistry app (http://www.chemcollective.org/applets/vlab.php) as a binary package here: http://ts.sch.gr/repo/pool/main/l/lyk-virtual-chemistry-lab/lyk-virtual-chemistry-lab_1.6.4-1_all.deb | 20:12 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!