I am able to connect remotely to the machine using SSH, but I cannot ping
www.google.com through the machine.
I did the following to make sure SSH was enabled (well I know it is, as I am using PuTTy):
# svcs ssh STATE STIME FMRI online 9:56:08 svc:/network/ssh:default
The machine name is:
# uname -a SunOS solaris 5.11 11.1 i86pc i386 i86pc
And the precise version is:
# cat /etc/release Oracle Solaris 11.1 X86 Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved. Assembled 19 September 2012
I am trying to install gcc, but it cannot contact valid package repository:
# pkg install gcc-45 pkg: 0/1 catalogs successfully updated: Unable to contact valid package repository Encountered the following error(s): Unable to contact any configured publishers. This is likely a network configuration problem. Framework error: code: 6 reason: Couldn't resolve host 'pkg.oracle.com' URL: 'http://pkg.oracle.com/solaris/release' (happened 4 times)
I don't understand that SSH can work, but my internet is not open.
This is what ifconfig -a returns:
# ifconfig -a lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 net0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 inet 10.0.11.17 netmask ff000000 broadcast 10.255.255.255 ether 8:0:27:7:ad:7 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1 inet6 ::1/128 net0: flags=20002004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2 inet6 fe80::a00:27ff:fe07:ad07/10 ether 8:0:27:7:ad:7
net0 IPv4 is the correct IP address that I am using for SSH. The only way I could (possibly) get round it, is if I could edit the gateway and the DNS IP addresses.
Any help to get this machine to see the internet, would be greatly appreciated.