Page 1 of 6 123 ... LastLast
Results 1 to 10 of 58

Thread: Trying to set static IP opensuse 42.1

  1. #1

    Default Trying to set static IP opensuse 42.1

    Good Day,

    I'm kinda stuck following several guides on setting-up a static IP on my Vbox, i tried several guides but to no avail it doesn't solve my problem.
    I followed guides where in i have inputted IPv4 / default gateway etc and stuff but i still get eth0 device-not-running problem and still can't do a test ping. Anyone had the same problem too?

    Thanks in Advance

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    16,804
    Blog Entries
    1

    Default Re: Trying to set static IP opensuse 42.1

    Quote Originally Posted by xlyreb View Post
    Good Day,

    I'm kinda stuck following several guides on setting-up a static IP on my Vbox, i tried several guides but to no avail it doesn't solve my problem.
    I followed guides where in i have inputted IPv4 / default gateway etc and stuff but i still get eth0 device-not-running problem and still can't do a test ping. Anyone had the same problem too?

    Thanks in Advance
    Your mentioning of VBox is relevant here. Is openSUSE running as a guest? You have a choice to make as to how you configure the network adapater. FWIW, I prefer to use bridge mode (configured via VBox... Settings > Network) so that my guest appears as just another host on my LAN. Your situation might be different. You need to understand the choices before you can proceed with configuring your guest
    https://www.thomas-krenn.com/en/wiki..._in_VirtualBox

    For configuring the network settings manually, the openSUSE guide is relevant here...
    https://doc.opensuse.org/documentati...change.address
    Last edited by deano_ferrari; 24-Oct-2017 at 13:47.

  3. #3

    Default Re: Trying to set static IP opensuse 42.1

    Yup, I already did yast > yast lan configuration also adding manual configuration on /etc/udev/rules.d/70-persistent-net.rules upon seeing some guides and applied it but still to no avail eth0 doesn't work and still at eth0 device-not-running whenever i ifconfig, also.. i tried ifup eth0 but it doesn't give me result ctrl+C also gives the same problem device-not-running but i can ping my static IP back. not sure if it runs as guest, but i use the root to log-in.

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    16,804
    Blog Entries
    1

    Default Re: Trying to set static IP opensuse 42.1

    I'm going to take apart your reply...
    not sure if it runs as guest,
    You mentioned VBox. Are we referring to a guest OS running in VBox? Or the host?

    but i use the root to log-in.
    Don't do that! Bad practice, and not necessary.

    Quote Originally Posted by xlyreb View Post
    Yup, I already did yast > yast lan configuration also adding manual configuration on /etc/udev/rules.d/70-persistent-net.rules upon seeing some guides and applied it but still to no avail eth0 doesn't work and still at eth0 device-not-running whenever i ifconfig, also.. i tried ifup eth0 but it doesn't give me result ctrl+C also gives the same problem device-not-running but i can ping my static IP back.
    There should have been no need to create any udev rules for your network device. Please run the following command
    Code:
    /sbin/ifconfig -a
    and report back with the ethernet device node reported.

  5. #5

    Default Re: Trying to set static IP opensuse 42.1

    Apologies for my dull answer good sire,

    I walk 2-3 yards away to get my things done, since i cannot research on stuff to get through my issue since i can't get myself connected through the internet due to my problem.
    I am following a set-up guide on installing this stuff, but it seems the problem is beyond the installation guide i'm reading, so i will manually write down the ethernet device node to get my problem solve and type it back in here
    give me a couple. and it is a guest OS.

    Thanks!

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    8,144

    Default Re: Trying to set static IP opensuse 42.1

    Always provide complete details.
    So, for instance if you're following a guide, then post a link to that guide or describe where it can be found.

    For starters,
    That udev rule you wrote should be removed.
    Don't even want to know what is in it, I'm sure it's irrelevant at best and harmful at worst.
    The reason why is because when you install a Virtualbox Guest, your install will automatically create a <virtualbox virtual network adapter> by default which is not dependent on any kind of hardware recognition (which udev might do for you). The virtual network network adapter will exist, and be the same on all systems regardless of the hardware... That's one of the beneficial features of virtualization, you don't have to worry so much about working hardware... The general principle is that if the hardware works for the HostOS, then it will work for the Guests.

    You should also get used to good practices, particularly a Standard Operating Procedure when troubleshooting your networking.
    Such as...

    ip addr - not ifconfig which is being deprecated. And ip addr displays some things ifconfig doesn't.
    ip route - displays your default gateway and any other routing.
    cat /etc/resolv.conf - For hostname resolution using DNS
    ping - verify network connectivity between hosts
    telnet - probe network connectivity to specific services on remote hosts

    Also,
    You should take care how and what you write in your post.
    A run-on streaming statement isn't going to be well understood by people willing to help you.
    You should be as detailed as possible <providing specifics> like your actual "ip addr" result so people don't have to guess.

    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7

    Post Re: Trying to set static IP opensuse 42.1

    Good Day,

    Here is what i've got from /sbin/ifconfig -a
    Code:
    eth0  Link encap:Ethernet HWaddr 84:2b:2b:8D:A7:43
                       inet addr:124.107.90.227 Bcast 0.0.0.0 mask 255.255.255.255
                       UP Broadcast Running Multicast MTU: 1500 Metric: 1
                       RX Packet:16 Errors:0 Dropped:16 Overruns:0 Frame:0
                       TX Packet:4 Errors:1 Dropped:0 Overruns:0 Carriers:0
                       Collsion:0 txqueuelen: 1000
                       RX bytes 1664(1.6kb) Tx bytes:256 (256.0b)
                      Interrupt:18
    Code:
    lo     Link Encap: local loopback
                      inet addr: 127.0.0.1 mask:255.0.0.0
                      UP loopback Running MTU:65536  Metric:1
                      RX Packet:0 Errors:0 Dropped:0 Overruns:0 Frame:0
                      TX Packet:0 Errors:0 Dropped:0 Overruns:0 Carriers:0
                      Collsion:0 txqueuelen: 0
    please pardon me if i have wrote wrong codes i have to write it manually and type it back apologies

  8. #8

    Default Re: Trying to set static IP opensuse 42.1

    heres the result of my ip addr
    Code:
    lo<loopback,UP,Lower,UP> mtu: 65536 qdisc noqueue State UNKNOWN group default
                    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
                    inet 127.0.0.1/8 scote host lo
                    Valit_lft Forever preferred_lft Forever
    
               eth0   <BROADCAST,MULTICAST,UP,LOWER,UP> mut:1500 qdisc mq state UP group default qlen: 1000
                        link letter 84:2b:2b:8d:a7:43 brd: ff:ff:ff:ff:ff:ff
                        inet 124.107.90.227/32 scope global rth0
                        valid_lft forever preferred_lft forever

  9. #9
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    8,144

    Default Re: Trying to set static IP opensuse 42.1

    Quote Originally Posted by xlyreb View Post
    Good Day,

    Here is what i've got from /sbin/ifconfig -a
    Code:
    eth0  Link encap:Ethernet HWaddr 84:2b:2b:8D:A7:43
                       inet addr:124.107.90.227 Bcast 0.0.0.0 mask 255.255.255.255
                       UP Broadcast Running Multicast MTU: 1500 Metric: 1
                       RX Packet:16 Errors:0 Dropped:16 Overruns:0 Frame:0
                       TX Packet:4 Errors:1 Dropped:0 Overruns:0 Carriers:0
                       Collsion:0 txqueuelen: 1000
                       RX bytes 1664(1.6kb) Tx bytes:256 (256.0b)
                      Interrupt:18
    Code:
    lo     Link Encap: local loopback
                      inet addr: 127.0.0.1 mask:255.0.0.0
                      UP loopback Running MTU:65536  Metric:1
                      RX Packet:0 Errors:0 Dropped:0 Overruns:0 Frame:0
                      TX Packet:0 Errors:0 Dropped:0 Overruns:0 Carriers:0
                      Collsion:0 txqueuelen: 0
    please pardon me if i have wrote wrong codes i have to write it manually and type it back apologies
    Why do you insist on running ifconfig?
    It's not providing all the info that's necessary, but the info that is provided looks OK.

    [EDIT] I see you posted the ip addr after I posted this response. Note the difference, how the netmask is provided.
    Proceed as I describe below.

    Missing are...
    netmask, default gateway info, and optionally name resolution.

    Compare your Guest address to your HostOS, if you configured your NetworkID the same and have a unique Host IP address, you should be able to at least ping other machines on the network by IP address.

    If you can't ping, then I'd suggest you verify that your virtualbox Guest networking properties is property set to bridging mode.

    If this is all new to you,
    I recommend to all new Users to set up their machines with DHCP and NAT first just to get their machines working because all virtualization technologies make it drop-dead easy to setup with a NAT DHCP server. After the machine is verified working, the machine can easily be re-configured with a static address connecting to the physical network using a bridging mode connection.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  10. #10

    Default Re: Trying to set static IP opensuse 42.1

    apologies good sire,

    the other response was for the guy who asked for /sbin/ifconfig -a

Page 1 of 6 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
  •