new to linux ... need help to config my network

Hi,

First time playing with opensuse. I am trying to config my internet/network using YAST and I guess I reached my “knowledge limit”.

I give you some more info about my setup:

-kde desktop (opensuse 13.1)

-wired connection

-traditional method with ifup (using YAST)

-my windows machine parameters to migrate to Opensuse:
IP: 192.168.0.103
Mask: 255.255.255.0
Default gateway: 192.168.0.1
Prefered DNS: 192.168.0.1

-more info:

 opensuse:~ # /usr/sbin/hwinfo --network
47: None 00.0: 10701 Ethernet                                   
  [Created at net.124]
  Unique ID: qzC0.ndpeucax6V1
 Parent ID: 9Ky7.1WVRdh9En64
  SysFS ID: /class/net/enp9s0
  SysFS Device Link: /devices/pci0000:00/0000:00:15.3/0000:09:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp9s0
  HW Address: 40:16:7e:20:90:4a
  Link detected: yes
  Config Status: cfg=no, avail=yes, need=no, active=unknown
  Attached to: #33 (Ethernet controller)

48: None 00.0: 10700 Loopback
  [Created at net.124]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=no, avail=yes, need=no, active=unknown



opensuse:~ # /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
loopback        *               255.0.0.0       U     0      0        0 lo
192.168.0.0     *               255.255.255.0   U     0      0        0 enp9s0



opensuse:~ # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
nameserver 192.168.0.1



opensuse:~ # su -c ifconfig
enp9s0    Link encap:Ethernet  HWaddr 40:16:7E:20:90:4A  
          inet addr:192.168.0.103  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:272 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:22316 (21.7 Kb)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:200 errors:0 dropped:0 overruns:0 frame:0
          TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14586 (14.2 Kb)  TX bytes:14586 (14.2 Kb)

opensuse:~ # ping -c 2 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.103 icmp_seq=1 Destination Host Unreachable
From 192.168.0.103 icmp_seq=2 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms
pipe 2
opensuse:~ # ping -c 2 192.168.0.103
PING 192.168.0.103 (192.168.0.103) 56(84) bytes of data.
64 bytes from 192.168.0.103: icmp_seq=1 ttl=64 time=0.040 ms
64 bytes from 192.168.0.103: icmp_seq=2 ttl=64 time=0.046 ms

--- 192.168.0.103 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.040/0.043/0.046/0.003 ms



opensuse:~ # ping -c 2 195.14.167.54
connect: Network is unreachable



opensuse:~ # ping -c 2 8.8.8.8
connect: Network is unreachable
opensuse:~ # 


 

Let me know if you anything else.

Rgds.

Hi
Check your YaST configuration with respect to the gateway. YaST->Network Device->Network Settings->Routing tab.

You mean I should assign to my gateway the device “enp9s0”?

Your ifconfig shows that the IP address/Netmask you want are used.

The ping to what you say is your router does not work. And then everything further (Internet) is not reachable. Are you sure that 192.168.0.1 is the correct IP address and that that router is functioning and that the cable connection is OK?

You do not realy need to mention the device in the default router configuration, but it is harmless as long as it is correct. You can see what YaST made out of your routing config with:

cat /etc/sysconfig/network/routes

Hi
Yes, enter your gateway address and then select the interface at the right.

Hi, the gateway and the dns are both the same 192.168.0.1. It is working since I have my other computer connected to this router (lan) too (using the same config).

I post now some screenshots of my Yast-config (network, host, firewall). There must be something I am missing. I hope it´s easier for you to help me.

I already tried to connect it to my other router router (wan) using “Network Manager” and it worked. But I need to connect Opensuse to the other router (lan) since this router is providing my lan connections. I want to understand how this is done in Opensuse and what files do manage the basic network config. I read the manual again but don´t see the actual problem.

http://s236.photobucket.com/user/razzta01/slideshow/opensuse
](http://i236.photobucket.com/albums/ff75/razzta01/00_zps5c7cd62a.png)Rgds.

Using the same config?
Including the IP-Address?
That cannot work. Each computer must have a different IP-Address.

Why don’t you use DHCP? Most routers should support that out of the box.
Your computers would get all necessary configuration from the router then.

I post now some screenshots of my Yast-config (network, host, firewall). There must be something I am missing. I hope it´s easier for you to help me.

You have entered your computer as DNS server, this cannot work. You need the router there.
And you probably should assign your interface to the internal firewall zone. (no zone assigned means external by default)

But both of that shouldn’t prevent you from pinging the router.

The rest looks ok, although you could try to explicitely specify the Network Submask as “255.255.255.0”.

I already tried to connect it to my other router router (wan) using “Network Manager” and it worked. But I need to connect Opensuse to the other router (lan) since this router is providing my lan connections. I want to understand how this is done in Opensuse and what files do manage the basic network config. I read the manual again but don´t see the actual problem.

You can switch to NetworkManager in openSUSE as well (“Global Options” in the network settings in YaST), if you feel more familiar with that.
But it should work in both cases.

The actual config is stored in /etc/sysconfig/network/ifcfg-interfacename.

But better use YaST to configure the interfaces.

It is STRUCTURING which helps to analyze and finally resolve problems.
So please, let us bring some structure in here.

FIRST question: Does the router provide IP adresses for its network by a DHCP Server?
This should be most likely.

SECOND question: Are the client computers configured to obtain their IP adresses via DHCP?
If not this shall be recified first of all.

Hi, I know that. Each of my computers does have a different static IP.
I just don´t use DCHP. And if I can make it work in windows I want to do it in linux too.

I could not check it today, will do it tomorrow.

I did explicitely define a subnet mask mask as you propose, but after hitting “next” this is what YAST saves.

No.

No.

Pls, can you explain me what parameter should I change?

Of course that is possible. e.g. using YaST > Network Devices > Network Settings.

Check all the tabs ther and configure, That should work.

As I said earlier, you can see in files in /etc/sysconfig/network/ what YaST created out of what you did. The configuration of a NIC is there in ifcfg-<name-of-the-device>. The routes (most often only the default route) are in routes. Apart from that the DNS server configuration is in /etc/resolv.conf.

So please post the contents of those file here… Then maybe we can say anything useful.