Hi I am installing oracle 11g and one of the requirements is to create Static IP. I am using Suse 10.3 and my network by default is configured to use DHCP. I Go to YAST->Network devices->Network and then change DHCP to IP and assign an IP address with a subnet mask and hostname but it does not work. Has someone done this before? Can someone tell me step by step how to assign Static IP and make it working? Thanks in advance!!
Can you define not working? Do you mean you can’t ping other systems, or does it revert to DHCP after a period of time?
Are you using NetworkManager on top of yast static configuration or is this strictly a server?
Maybe I may add some questions to stevenharms ones (because you do not tell us much more then: it does not work)?
What is the IP address, the netmask and the hostn ame you added.
Thanks for your reply and here are your answers-
- Not working: After assigning static IP [defined later, how] when I restart my system I am not able to connect to the Internet. The traffic is blocked. when go to Yast->Network devices->Network card-> global options tab. I see firewall set to “No Zone. All traffic blocked” even after i selected External zone and saved the setting, it automatically switches to this one.
- It does not revert to DHCP ever
- Are you using NetworkManager on top of yast static configuration or is this strictly a server? I probably could not understood this. I am not using any Network Manager.
- IP: 192.168.1.162, Subnet mask: 255.255.255.0 host: saraswati
Please let know if you have further questions. I’ll more than happy to answer but I want to resolve this issue.
It may be your firewall, just switch it off to see if you can connect to the internet. BTW rebooting is not needed, this is not windoz.
Also show us how the network cards are doing by posting the output of
sudo ifconfig -a
Disabling firewall does not help.
Output of sudo ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:14:F8:5A:11:87
inet addr:192.168.1.162 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::214:f8ff:fe5a:1187/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3460 errors:0 dropped:0 overruns:0 frame:0
TX packets:2807 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2101639 (2.0 Mb) TX bytes:524517 (512.2 Kb)
eth1 Link encap:Ethernet HWaddr 00:1B:38:C4:25:71
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:22 Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:272 errors:0 dropped:0 overruns:0 frame:0
TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:17216 (16.8 Kb) TX bytes:17216 (16.8 Kb)
Any pointers?
On Sat, 21 Jun 2008 20:46:03 GMT
garg anoop <garg_anoop@no-mx.forums.opensuse.org> wrote:
>
> Disabling firewall does not help.
> Output of sudo ifconfig -a
> eth0 Link encap:Ethernet HWaddr 00:14:F8:5A:11:87
> inet addr:192.168.1.162 Bcast:255.255.255.255
> Mask:255.255.255.0
> inet6 addr: fe80::214:f8ff:fe5a:1187/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:3460 errors:0 dropped:0 overruns:0 frame:0
> TX packets:2807 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:2101639 (2.0 Mb) TX bytes:524517 (512.2 Kb)
>
> eth1 Link encap:Ethernet HWaddr 00:1B:38:C4:25:71
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
> Interrupt:22 Base address:0x8000
>
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:272 errors:0 dropped:0 overruns:0 frame:0
> TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:17216 (16.8 Kb) TX bytes:17216 (16.8 Kb)
>
> Any pointers?
>
>
Hi
Did you add the gateway and DNS manually?
–
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 10 days 17:17, 0 users, load average: 0.22, 0.29, 0.23
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09
No I have not changed gateway, DNS.
I wish i could attach the snapshots to show you guys the configuration. Let me know if you need any other information. How can I make static IP work?
You need to set your gateway IP to be that of your router. If you don’t know which IPs you need for DNS, you can use OpenDNS | Providing A Safer And Faster Internet DNS servers instead.
Once you have set your default gateway please post the output of:
# cat /etc/resolv.conf
# /sbin/route -n
My guess is that your ‘route’ is not coming out right.
The correct setting is to make sure that you have
checked (enabled) the box, under ‘global options’:
“Change Default Route via DHCP”
[That way, it will automatically generate the correct routing
info for you. This may seem counter-intuitive for ‘static IP’
setup, but it works.]
Hope this helps…
Dave
Looks like its not my day today
There is no such option under “global options”. Under Hostnames/DNS there is an option of “change hostname via DHCP” which is unchecked. Should I change that? Has someone done this before on 10.3? If yes please tell me the steps or if someone has got 10,3 and network then please create static IP by yourself and if successful, share the knowledge with the community.
Sorry…I mis-read. Thought you were running SUSE 11.0.
[Why aren’t you?:D]
On Sun, 22 Jun 2008 02:36:03 GMT
garg anoop <garg_anoop@no-mx.forums.opensuse.org> wrote:
>
> Looks like its not my day today
> There is no such option under “global options”. Under Hostnames/DNS
> there is an option of “change hostname via DHCP” which is unchecked.
> Should I change that? Has someone done this before on 10.3? If yes
> please tell me the steps or if someone has got 10,3 and network then
> please create static IP by yourself and if successful, share the
> knowledge with the community.
>
>
Hi
Under the Hostname/DNS tab select the box, Change /etc/resolv.conf
manually if your router (Gateway) doesn’t provide the DNS eg for openDNS
servers;
Name Server 1 208.67.222.222
Name Server 2 208.67.220.220
Note there is a checkbox down the bottom of the Hostname/DNS tab that
says Update DNS data via DHCP, it should pick it up from the router
(Gateway).
On the Routing Tab enter the gateway which is your DSL router eg
Default Gateway 192.168.1.1
Hit the finish button.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 10 days 23:54, 0 users, load average: 0.35, 0.35, 0.23
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09
Setting a static IP is the same in 11.0 as 10.3 though the info may be distributed in different tabs.
You need to fill in all of this info somewhere:
Usually associated with the network interface:
IP address
Netmask (usually 255.255.255.0)
Hostname
Usually associated with DNS:
Hostname (again) and domain name
Nameserver IP (up to three)
Search domains (if you have a local domain(s) as many workplaces do)
Usually associated with routing:
Default gateway (usually your router)
Do not select anything associated with DHCP since the point of static IP is not to use DHCP.
certainly sounds like DNS- Servers and Defaulat gateway need to be added.
Hop on a machine that has access to the internet and in window$
ipconfig /all or *nix ifconfig and get them ip addresses.
enter the DNS server addresses and your default gateway addresses into the manual config of your SuSE machine.
I would suspect that is DNS servers more than a gateway issue.
I must say. Thanks to everyone for helping me out. The nasty problem still persists but It’s more than a pleasure to see you all constantly thinking and trying to help me fix this issue.
I probably am not well versed with or now confused in DNS server/gateway thingy…
I ran /sbin/route -n command to find out the gateway. I put that gateway in the routing tab but somthin’ is going out here…Does not work…I am looking for the steps with real world example to see if I am doing something really stupid. Assigning static IP should not be such a difficult task, I ask myself, but looks like it’s proven me wrong
Well I think somebody above asked you to post the output of route -n. Where is it?
Route -n will tell us which is your default gataeway at the moment, so we can see if it looks a bit usefull. I do nnotunderstand what you mean when you say that you put the output of route -n in the roouting table, because it is already there, route -n shows the contents of the routing table.
Please, as we can not look over your shoulder as you are typing do tell exactly what you do (by e.g. pasting your CLI session into the post), ele we most probably come to the wrong conclusions. As an example see my route -n:
boven:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0 0 eth0
Nice isn’t it?
On Sun, 22 Jun 2008 17:36:03 GMT
hcvv <hcvv@no-mx.forums.opensuse.org> wrote:
>
> Well I think somebody above asked you to post the output of route -n.
> Where is it?
>
> Route -n will tell us which is your default gataeway at the moment, so
> we can see if it looks a bit usefull. I do nnotunderstand what you
> mean when you say that you put the output of route -n in the roouting
> table, because it is already there, route -n shows the contents of
> the routing table.
>
> Please, as we can not look over your shoulder as you are typing do
> tell exactly what you do (by e.g. pasting your CLI session into the
> post), ele we most probably come to the wrong conclusions. As an
> example see my route -n:
>
> Code:
> --------------------
> boven:~ # route -n
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface 10.0.0.0 0.0.0.0 255.255.255.0 U
> 0 0 0 eth0 169.254.0.0 0.0.0.0
> 255.255.0.0 U 0 0 0 eth0 127.0.0.0
> 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 10.0.0.138 0.0.0.0 UG 0 0
> 0 eth0 --------------------
>
>
> Nice isn’t it?
>
>
Hi
These may help;
DHCP IP
http://www.muppetwifi.homeunix.net/novell/static1.jpg
http://www.muppetwifi.homeunix.net/novell/static2.jpg
http://www.muppetwifi.homeunix.net/novell/static3.jpg
http://www.muppetwifi.homeunix.net/novell/static4.jpg
http://www.muppetwifi.homeunix.net/novell/static5.jpg
http://www.muppetwifi.homeunix.net/novell/static6.jpg
STATIC IP
–
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 11 days 15:25, 0 users, load average: 1.04, 0.82, 0.58
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09
My Apologies, How could i miss that :-(.
Here’s all you want. Screen shots of all I do and you asked for.
Picasa Web Albums - Anoop - StaticIP Issue
I hope this would help. meanwhile I’ll try the above solution [images].
On Sun, 22 Jun 2008 20:16:03 GMT
garg anoop <garg_anoop@no-mx.forums.opensuse.org> wrote:
>
> My Apologies, How could i miss that :-(.
> Here’s all you want. Screen shots of all I do and you asked for.
> ‘Picasa Web Albums - Anoop - StaticIP Issue’
> (http://picasaweb.google.ca/garg.anoop/StaticIPIssue)
> I hope this would help. meanwhile I’ll try the above solution
> [images].
>
>
Hi
Those pictures show you are trying to assign a static ip to your modem?
This won’t work as the ip is assigned by your ISP unless you have
requested a static ip address?
Plus you have everything blocked by the firewall (look at the zone
assignment)
Do you want your database pointing at the internet?
–
Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.23-smp
up 11 days 17:40, 0 users, load average: 0.48, 0.25, 0.20
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.09