pouët.net

Go to bottom

Trying setup Linux internet connection in windows 8.1 using hyperv virtualizing opensuse 12.3

category: offtopic [glöplog]
 
Hi,

I ve got a problem.
Well, Windows interface says its possible.
but i just cant manage setting up my internet connection in open suse 12.3 with hyperv.

As good will, i uncheked ipv6 and i'm using dhcp in hyperv and opensuse with no proxy in firefox linux.
I add the defaut gateway in yast 192.168.1.1 etho and save it but it does not show it using /sbin/route command.
Is says network unreachable without my gateway and when i want to add it manually it adds it to lo and not eth0.

Thanks.
Regards.
added on the 2013-11-14 14:54:49 by CodeK CodeK
funny place for linux tech support, but
Code:route add default gw 192.168.1.1 eth0

maybe?
added on the 2013-11-14 15:08:00 by wysiwtf wysiwtf
nop

route add default gw 192.168.1.1 etho
results
SIOCADDRT : the network is not reachable.
added on the 2013-11-14 16:05:47 by CodeK CodeK
so basically the first question would be: what is the output of ifconfig?
added on the 2013-11-14 16:47:19 by skomp skomp
etho? reminds me of the time when floppy access stopped working for me on amiga CLI, because i was typing dfo:

Try eth0?
added on the 2013-11-14 16:47:42 by psonice psonice
etho i mean eth0 psonice

skomp: ifconfig returns: (its in french)

eth0 Link encap:Ethernet HWaddr 00:15:5D:F1:BF:05
UP BROADCAST RUNNING 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 lg file transmission:1000
RX bytes:0 (0.0 b) TX bytes:30438 (29,7 Kb)

lo Link encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1024 errors:0 dropped:0 overruns:0 frame:0
TX packets:1024 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:78644 (76.8 kb) TX bytes:78644 (76.8 kB)
added on the 2013-11-14 17:45:18 by CodeK CodeK
eth0 has no ip address.
Code:ifconfig eth0 192.168.0.254 netmask 255.255.255.0 broadcast 192.168.0.255

comes to mind (or whatever ip you want to assign)
added on the 2013-11-14 18:04:44 by wysiwtf wysiwtf
theres surely some suse specific config file to initialize the network interfaces at boot time as well.
i know debian has it at /etc/network/interfaces but not sure about suse
added on the 2013-11-14 18:06:38 by wysiwtf wysiwtf
the command

ifconfig eth0 192.168.0.254 netmask 255.255.255.0 broadcast 192.168.0.255

works

but then the command

route add default gw 192.168.1.1 eth0

still result

SIOCADDRT : the network is not reachable.

in opensuse config file are in /etc/sysconfig/network

especially the file 'ifcfg-eth0'

BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
MTU=''
NAME='Virtual Ethernet Card 0'
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'

there is also the file 'routes' too
added on the 2013-11-14 19:36:33 by CodeK CodeK
well the network 192.168.1.x/24 isnt reachable from the subnet 192.168.0.x/24 which you just configured with the command i gave you (stating you have to change the ip), at least not without a specific route set.
the config file looks like its just set to dhcp, so you need a (properly configured) dhcp server in your network if you wanna keep it that way and hyperv needs to pass through the dhcp traffic as well.

please, get a clue about ip based networking, theres 1000 tutorials for every linux distro on the internets.
added on the 2013-11-14 19:44:47 by wysiwtf wysiwtf
Quote:
so basically the first question would be: what is the output of ifconfig?
added on the 2013-11-14 19:54:34 by ringofyre ringofyre
ok, it appears there's a bug from hyperv, i'm checking that ifcfg-eth0...
added on the 2013-11-15 08:23:40 by CodeK CodeK
CodeK: i´d like to invite some friend, my best friend indeed, to get known to you, he´s even a visitor of evoke since 2008 and hasn´t missed any event since...he´s in love with linux! [iknowwhoyeareanywaynextevokeimmaconnectyoutwo]
man, it's simple: you have to replace 0 by 1 for the ifconfig stuff:
Code:ifconfig eth0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255


then the network should be reachable.
added on the 2013-11-15 13:26:12 by skomp skomp
RTFM!
fine.

- ifconfig eth0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255
- route add default gw 192.168.1.1 eth0

works

but still there must be the link local address to add manually to surf with linux firefox ?

how to make appears

169.254.0.0/16 dev eth0 scope link

or something else ?

i'm sorry i'm posting that quite fast this time.
added on the 2013-11-15 15:11:44 by CodeK CodeK
ok

- ifconfig eth0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255
- route add default gw 192.168.1.1 eth0

and then

- ping 192.168.1.1

results

from 192.168.1.254 destination host unreachable

any idea ?
added on the 2013-11-15 18:53:40 by CodeK CodeK

login

Go to top