Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: How to create Static IP address?

  1. #1

    Default How to create Static IP address?

    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!!
    Thanks,
    -Anoop

  2. #2

    Default Re: How to create Static IP address?

    Quote Originally Posted by garg_anoop View Post
    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?
    My Weblog: Everything Linux
    GPG Key ID: C92EF367 / 1428 FE8E 1E07 DDA8 EFD7 195F DCCD F5B3 C92E F367

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,766

    Default Re: How to create Static IP address?

    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.
    Henk van Velden

  4. #4

    Default Re: How to create Static IP address?

    Thanks for your reply and here are your answers-
    1. 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.
    2. It does not revert to DHCP ever
    3. 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.
    4. 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.
    Thanks,
    -Anoop

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,766

    Default Re: How to create Static IP address?

    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
    Henk van Velden

  6. #6

    Default Re: How to create Static IP address?

    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?
    Thanks,
    -Anoop

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,325
    Blog Entries
    15

    Default Re: How to create Static IP address?

    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


  8. #8

    Default Re: How to create Static IP address?

    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?
    Thanks,
    -Anoop

  9. #9

    Default Re: How to create Static IP address?

    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:

    Code:
    # cat /etc/resolv.conf
    # /sbin/route -n
    My Weblog: Everything Linux
    GPG Key ID: C92EF367 / 1428 FE8E 1E07 DDA8 EFD7 195F DCCD F5B3 C92E F367

  10. #10
    Join Date
    Jun 2008
    Location
    Sarasota
    Posts
    301

    Default Re: How to create Static IP address?

    Quote Originally Posted by garg_anoop View Post
    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?
    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

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •