On Thu, Nov 6, 2014 at 4:19 AM, Markus Pfeiffer <[email protected] > wrote:
> Hi Mehmet, > > On Wed, Nov 05, 2014 at 09:00:53PM -0800, Mehmet Erol Sanliturk wrote: > > > > # ifconfig -v ue0 192.168.10.1 netmask 255.255.255.0 > > # ping 192.168.1.1 > > > > listed : > > > > ping : sent to : No route to host > > > > If you configure the ip manually, you'll have to set a default route to > ping > hosts outside your network. Are you sure that > > # ifconfig -v ue0 192.168.10.1 netmask 255.255.255.0 > > is what you intended? > > If so, then you have to set a default route: > > # route add -inet default $yourgatewayaddress > > If you have a dhcp server (which I assume you do), then using > > # dhclient ue0 > > will hopefully give you all the correct settings, including entries for > resolv.conf. > > Cheers, > Markus > Dear Markus , This line is connected to ADSL modem having IP as 192.168.1.1 . ---------- # ifconfig -v ue0 192.168.10.1 netmask 255.255.255.0 With the above statement , may intention was to assign an IP to USB NIC . Inclusion of the following statement # route add -inet default 192.168.1.1 listed : route : writing to routing socket : network is unreachable add net default : gateway 192.168.1.1 : network is unreachable # ping 192.168.1.1 did not work ... ------------- After detaching and attaching USB NIC to renew its definition : # dhclient ue0 starting dhclient on ue0 # ping 192.168.1.1 ... 6 packet transmitted , 6 packet received , 0.0% packet loss means USB NIC has worked successfully . ------------- I admit that I do not know details of networking related statements : Manual pages are useless ( only reminder to persons knowing subjects very well ) , there are book but in details they are useless . Thank you very much . Mehmet Erol Sanliturk
