change IP and hostname

Polytropon freebsd at edvax.de
Tue Apr 22 13:22:37 UTC 2014


On Tue, 22 Apr 2014 16:08:14 +0300, tethys ocean wrote:
> /etc/hosts  is remain default (yet)
> 
> its has not behind FW yet.
> 
> no any err. message in all log.. also changed cable, and port still not
> enable to ping to its own router..
> 
> it was working on other network block whenever change its IP, router and
> switch its network connection suddenly stop
> 
> I can't find why

In this case, use tcpdump and then try to ping again.
Note that you need root permissions (maybe via sudo)
to do this.

For example,

	# tcpdump -i xl0

And on a different VT:

	# ping -c 1 192.168.100.1

In this example, 192.168.100.1 would be the IP of the
router which you know. The interface facing the router
is xl0. Adjust those things according to your setup.

You should then see something like this:

	15:15:17.785185 IP xxx.xxxxx.xx.38899 > xxxxx.xxxxxxx.xxx.49000: Flags [F.], seq 2969289793, ack 1229106900, win 8326, options [nop,nop,TS val 62460010 ecr 137373231], length 0
	15:15:17.790729 IP xxxxx.xxxxxxx.xxx.49000 > xxx.xxxxx.xx.38899: Flags [F.], seq 1, ack 1, win 3432, options [nop,nop,TS val 137385608 ecr 62460010], length 0
	15:15:17.790766 IP xxx.xxxxx.xx.38899 > xxxxx.xxxxxxx.xxx.49000: Flags [.], ack 2, win 8325, options [nop,nop,TS val 62460016 ecr 137385608], length 0
	15:15:17.872620 IP xxx.xxxxx.xx > xxxxx.xxxxxxx.xxx: ICMP echo request, id 21538, seq 0, length 64
	15:15:17.873190 IP xxxxx.xxxxxxx.xxx > xxx.xxxxx.xx: ICMP echo reply, id 21538, seq 0, length 64
	15:15:22.646588 IP xxxxx.xxxxxxx.xxx.3644 > xxx.xxxxx.xx.14013: Flags [S], seq 1365501121, win 5840, options [mss 1460,sackOK,TS val 137386094 ecr 0,nop,wscale 1], length 0
	15:15:22.646628 IP xxx.xxxxx.xx.14013 > xxxxx.xxxxxxx.xxx.3644: Flags [R.], seq 0, ack 1365501122, win 0, length 0

You're probably not going to see this. :-) Please post the output
to the list for better diagnostics. Also verify "ifconfig" output
to reflect your intended settings.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list