Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Trouble setting a static ip address
New Posts  All Forums:Forum Nav:

Trouble setting a static ip address

post #1 of 7
Thread Starter 
Hey, I'm messing around with an openSUSE 12.2 VM. I am trying to set a static ip adress but it doesn't seem to work. I can't ping out, can't use the internet. When I have it set to dhcp it will work, whenever I try to set it to static through the GUI or CLI it will not function at all. It will set an ip address but that address will not connect even though it's on the same network for my VMs.

e.g. my vm NAT adapter's network is 192.168.136.0 and I am trying to set it to 192.168.136.100 - I will get nothing.

I changed the BOOTPROTO in /etc/sysconfig/network/ifcfg-eth0 to static and that hasn't helped at all.


I've tried setting it with the ifconfig command as well - I'm a little clueless.

I have very little experience with linux and am not sure what I'm overlooking - any input?
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
post #2 of 7
What range is Dhcp on the router?
RED
(15 items)
 
SOLD
(22 items)
 
 
CPUMotherboardGraphicsGraphics
i5-6600k GA-Z170X-Gaming 7 ASUS GeForce GTX 1080 8GB ROG STRIX ASUS GeForce GTX 1080 8GB ROG STRIX 
RAMHard DriveHard DriveHard Drive
G.Skill Trident Z Crucial MX200 WD Red Mushkin Chronos 
MonitorKeyboardPowerCase
ASUS PB278Q Corsair Strafe Mx Reds Corsair RMX 750 Corsair 600c 
MouseAudioAudio
Roccat Nyth Fiio E10k Fostex T50rp 
CPUMotherboardGraphicsRAM
I5-2500k @ 4.5Ghz 1.335v GIGABYTE G1.Sniper 3 Evga Gtx 680 4GB @ 1280Mhz 1.213v Samsung 30nm 8Gb @ 2133 10-10-10-25 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 Seagate Barracuda 2Tb TSSTcorp Blu ray Apogee HD 
CoolingOSMonitorKeyboard
Xspc Razor Gtx 680 W 7 Ultimate 64 Asus VW246H 24" SIGG 
PowerCaseMouseAudio
SeaSonic X-SERIES X-1050 Nzxt switch 810 matte black Razor Naga Creative Inspire Woofer, Sony Audio Controller ... 
OtherOtherOtherOther
MCP655 Variable with pump mod kit Xspc Rx360 Xspc Ex240 Multiport Bitspower 150 Inline Reservoir  
OtherOther
10x Bitspower 1/2" x 3/4" Compression fittings ... Primochill Uv Green tubing 
  hide details  
Reply
RED
(15 items)
 
SOLD
(22 items)
 
 
CPUMotherboardGraphicsGraphics
i5-6600k GA-Z170X-Gaming 7 ASUS GeForce GTX 1080 8GB ROG STRIX ASUS GeForce GTX 1080 8GB ROG STRIX 
RAMHard DriveHard DriveHard Drive
G.Skill Trident Z Crucial MX200 WD Red Mushkin Chronos 
MonitorKeyboardPowerCase
ASUS PB278Q Corsair Strafe Mx Reds Corsair RMX 750 Corsair 600c 
MouseAudioAudio
Roccat Nyth Fiio E10k Fostex T50rp 
CPUMotherboardGraphicsRAM
I5-2500k @ 4.5Ghz 1.335v GIGABYTE G1.Sniper 3 Evga Gtx 680 4GB @ 1280Mhz 1.213v Samsung 30nm 8Gb @ 2133 10-10-10-25 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 Seagate Barracuda 2Tb TSSTcorp Blu ray Apogee HD 
CoolingOSMonitorKeyboard
Xspc Razor Gtx 680 W 7 Ultimate 64 Asus VW246H 24" SIGG 
PowerCaseMouseAudio
SeaSonic X-SERIES X-1050 Nzxt switch 810 matte black Razor Naga Creative Inspire Woofer, Sony Audio Controller ... 
OtherOtherOtherOther
MCP655 Variable with pump mod kit Xspc Rx360 Xspc Ex240 Multiport Bitspower 150 Inline Reservoir  
OtherOther
10x Bitspower 1/2" x 3/4" Compression fittings ... Primochill Uv Green tubing 
  hide details  
Reply
post #3 of 7
Thread Starter 
192.168.136.128 to 254

I have just set the address to 192.168.136.150 and it is not working
Edited by Zakel2 - 12/7/12 at 10:54pm
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
post #4 of 7
The default gateway is 136?
RED
(15 items)
 
SOLD
(22 items)
 
 
CPUMotherboardGraphicsGraphics
i5-6600k GA-Z170X-Gaming 7 ASUS GeForce GTX 1080 8GB ROG STRIX ASUS GeForce GTX 1080 8GB ROG STRIX 
RAMHard DriveHard DriveHard Drive
G.Skill Trident Z Crucial MX200 WD Red Mushkin Chronos 
MonitorKeyboardPowerCase
ASUS PB278Q Corsair Strafe Mx Reds Corsair RMX 750 Corsair 600c 
MouseAudioAudio
Roccat Nyth Fiio E10k Fostex T50rp 
CPUMotherboardGraphicsRAM
I5-2500k @ 4.5Ghz 1.335v GIGABYTE G1.Sniper 3 Evga Gtx 680 4GB @ 1280Mhz 1.213v Samsung 30nm 8Gb @ 2133 10-10-10-25 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 Seagate Barracuda 2Tb TSSTcorp Blu ray Apogee HD 
CoolingOSMonitorKeyboard
Xspc Razor Gtx 680 W 7 Ultimate 64 Asus VW246H 24" SIGG 
PowerCaseMouseAudio
SeaSonic X-SERIES X-1050 Nzxt switch 810 matte black Razor Naga Creative Inspire Woofer, Sony Audio Controller ... 
OtherOtherOtherOther
MCP655 Variable with pump mod kit Xspc Rx360 Xspc Ex240 Multiport Bitspower 150 Inline Reservoir  
OtherOther
10x Bitspower 1/2" x 3/4" Compression fittings ... Primochill Uv Green tubing 
  hide details  
Reply
RED
(15 items)
 
SOLD
(22 items)
 
 
CPUMotherboardGraphicsGraphics
i5-6600k GA-Z170X-Gaming 7 ASUS GeForce GTX 1080 8GB ROG STRIX ASUS GeForce GTX 1080 8GB ROG STRIX 
RAMHard DriveHard DriveHard Drive
G.Skill Trident Z Crucial MX200 WD Red Mushkin Chronos 
MonitorKeyboardPowerCase
ASUS PB278Q Corsair Strafe Mx Reds Corsair RMX 750 Corsair 600c 
MouseAudioAudio
Roccat Nyth Fiio E10k Fostex T50rp 
CPUMotherboardGraphicsRAM
I5-2500k @ 4.5Ghz 1.335v GIGABYTE G1.Sniper 3 Evga Gtx 680 4GB @ 1280Mhz 1.213v Samsung 30nm 8Gb @ 2133 10-10-10-25 
Hard DriveHard DriveOptical DriveCooling
Crucial m4 Seagate Barracuda 2Tb TSSTcorp Blu ray Apogee HD 
CoolingOSMonitorKeyboard
Xspc Razor Gtx 680 W 7 Ultimate 64 Asus VW246H 24" SIGG 
PowerCaseMouseAudio
SeaSonic X-SERIES X-1050 Nzxt switch 810 matte black Razor Naga Creative Inspire Woofer, Sony Audio Controller ... 
OtherOtherOtherOther
MCP655 Variable with pump mod kit Xspc Rx360 Xspc Ex240 Multiport Bitspower 150 Inline Reservoir  
OtherOther
10x Bitspower 1/2" x 3/4" Compression fittings ... Primochill Uv Green tubing 
  hide details  
Reply
post #5 of 7
Thread Starter 
Yes - the default gateway is 192.168.136.2 subnet mask of 255.255.255.0

I can ping the default gateway but can't get beyond that.

I will try a traceroute to 74.125.225.33 (google.com) and will get:
Unable to lookup 192.168.136.2: Temporary failure in name resolution


is my dns not set correctly? But then why would I need dns to look up an ip address?

I have also added 192.168.136.2 as my default gateway in my route table.
Edited by Zakel2 - 12/8/12 at 8:48am
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
post #6 of 7
Quote:
Originally Posted by Zakel2 View Post

Yes - the default gateway is 192.168.136.2 subnet mask of 255.255.255.0

I can ping the default gateway but can't get beyond that.

I will try a traceroute to 74.125.225.33 (google.com) and will get:
Unable to lookup 192.168.136.2: Temporary failure in name resolution


is my dns not set correctly? But then why would I need dns to look up an ip address?

I have also added 192.168.136.2 as my default gateway in my route table.

I don't mean to ask a dumb ? but are you using this in a VM or virtual-box? and are you using ICS [Internet connection sharing]? if so I think I know the problem you are having, if not I am not 100% sure whats going on. But I will try and help, I just can't post all that much lately [meaning won't respond very fast but I will respond] so I read a few things you have tried but if you can put out the hole environment the Box is running on
post #7 of 7
Thread Starter 
Hey, I am running this is vmware and I have all of my network settings correct. I can use other machines just fine with the network I have set up in vmware. I have used the same NAT adapter to successfully set a static ip adress on my Fedora 13 machine. I tried to bridge the connection between the openSUSE machine and the host machine and I still can't set a static ip. DHCP will always work - but for some reason it doesn't like any of the ip address I give it that reside within the address pool of that NAT adapter.
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
Obsidian
(16 items)
 
  
CPUMotherboardGraphicsRAM
i5 2500k Z68X-UD5-B3 Sapphire 6970 G.Skill 2x4GB 
Hard DriveHard DriveOptical DriveCooling
Crucial M4 Samsung F3 Something cheap Swftech Apogee HD 
CoolingCoolingCoolingOS
EK FC-6970V2 MCP 355 XSPC EX360 Windows 7  
MonitorPowerCaseAudio
Samsung XL2370 OCZ ModXStream Pro 700W Corsair Obsidian 800D Asus Xonar DG 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Trouble setting a static ip address