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.
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.
funny place for linux tech support, but
maybe?
Code:
route add default gw 192.168.1.1 eth0
maybe?
nop
route add default gw 192.168.1.1 etho
results
SIOCADDRT : the network is not reachable.
route add default gw 192.168.1.1 etho
results
SIOCADDRT : the network is not reachable.
so basically the first question would be: what is the output of ifconfig?
etho? reminds me of the time when floppy access stopped working for me on amiga CLI, because i was typing dfo:
Try eth0?
Try eth0?
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)
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)
eth0 has no ip address.
comes to mind (or whatever ip you want to assign)
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)
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
i know debian has it at /etc/network/interfaces but not sure about suse
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
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
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.
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.
Quote:
so basically the first question would be: what is the output of ifconfig?
ok, it appears there's a bug from hyperv, i'm checking that ifcfg-eth0...
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:
then the network should be reachable.
Code:
ifconfig eth0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.1.255
then the network should be reachable.
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.
- 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.
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 ?
- 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 ?