OpenSolaris Solaris Forum  
     

Left Nav FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum Solaris Networking

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-12-2009, 05:45 AM
sam sam is offline
Junior Member
 
Join Date: Jan 2009
Posts: 2
Default IP forwarding

There are two machines with belenix 0.7.1 and windows OS. Windows machine have one network interface with static IP address 192.168.1.36. Belenix machine have two network interfaces rge0 and icpt0(static IP 192.168.1.35). rge0 interface connected to DSL modem by DHCP configuration. I am trying IP forwarding. Instructions following:

C:\>ipconfig

Windows XP IP Configuration

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . . :
IP Address . . . . . . . . . . . . . . . . . . : 192.168.1.36
Subnet Mask . . . . . . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . . . . . : 192.168.1.35


C:\>ping 63.216.49.202

Pinging 63.216.49.202 with 32 bytes of data:

Request Timed Out.
Request Timed Out.
Request Timed Out.
Request Timed Out.

Ping statistics for 63.216.49.202:
Packets: sent = 4, received = 0, lost = 4 (loss 100%),


[email protected]:~$ pppd call utel
Serial connection established.
Using interface sppp0
Connect: sppp0 <--> /dev/sppptun
Can't add default route: File exists
local IP address 89.20.117.29
remote IP address 83.219.4.10


[email protected]:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
icpt0: flags=201100843<UP,BROADCAST,RUNNING,MULTICAST,ROU TER,IPv4,CoS> mtu 1500 index 2
inet 192.168.1.35 netmask ffffff00 broadcast 192.168.1.255
sppp0: flags=10011008d1<UP,POINTOPOINT,RUNNING,NOARP,MULT ICAST,ROUTER,IPv4,FIXEDMTU> mtu 1460 index 3
inet 94.50.180.167 --> 83.219.4.10 netmask ff000000


[email protected]:~$ netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- -------- ---------
default 83.219.4.10 UG 1 49
83.219.4.10 94.50.180.167 UH 1 0 sppp0
192.168.1.0 192.168.1.35 U 1 33 icpt0
127.0.0.1 127.0.0.1 UH 1 16 lo0


[email protected]:~$ routeadm
Configuration Current Current
Option Configuration System State
---------------------------------------------------------------
IPv4 routing enabled enabled
IPv6 routing disabled disabled
IPv4 forwarding enabled enabled
IPv6 forwarding disabled disabled

Routing services "svc:/network/routing/route:default svc:/network/routing/ripng:default"

Routing daemons:

STATE FMRI
online svc:/network/routing/route:default
disabled svc:/network/routing/ndp:default
disabled svc:/network/routing/legacy-routing:ipv4
disabled svc:/network/routing/legacy-routing:ipv6
disabled svc:/network/routing/rdisc:default
disabled svc:/network/routing/ripng:default


[email protected]:~$ sudo dladm show-link
LINK CLASS MTU STATE OVER
rge0 phys 1500 up --
icpt0 phys 1500 unknown --


[email protected]:~$ sudo ndd /dev/ip ip_forwarding
1


[email protected]:~$ cat /etc/ipf/ipf.conf
#
# ipf.conf
#
# IP Filter rules to be loaded during startup
#
# See ipf(4) manpage for more information on
# IP Filter rules syntax.


[email protected]:~$ sudo ipfstat
bad packets: in 0 out 0
IPv6 packets: in 0 out 0
input packets: blocked 0 passed 914 nomatch 773 counted 0 short 0
output packets: blocked 0 passed 824 nomatch 169 counted 0 short 0
input packets logged: blocked 0 passed 0
output packets logged: blocked 0 passed 0
packets logged: input 0 output 0
log failures: input 0 output 0
fragment state(in): kept 0 lost 0 not fragmented 0
fragment state(out): kept 0 lost 0 not fragmented 0
packet state(in): kept 0 lost 0
packet state(out): kept 0 lost 0
ICMP replies: 0 TCP RSTs sent: 0
Invalid source(in): 0
Result cache hits(in): 141 (out): 655
IN Pullups succeeded: 10 failed: 0
OUT Pullups succeeded: 1 failed: 0
Fastroute successes: 0 failures: 0
TCP cksum fails(in): 0 (out): 0
IPF Ticks: 628
Packet log flags set: (0)
none



[email protected]:~$ ping 63.216.49.202
63.216.49.202 is alive


[email protected]:~$ svcs
STATE STIME FMRI
legacy_run 19:07:34 lrc:/etc/rc2_d/S20sysetup
legacy_run 19:07:34 lrc:/etc/rc2_d/S40llc2
legacy_run 19:07:34 lrc:/etc/rc2_d/S42ncakmod
legacy_run 19:07:35 lrc:/etc/rc2_d/S47pppd
legacy_run 19:07:35 lrc:/etc/rc2_d/S70uucp
legacy_run 19:07:35 lrc:/etc/rc2_d/S73cachefs_daemon
legacy_run 19:07:35 lrc:/etc/rc2_d/S81dodatadm_udaplt
legacy_run 19:07:35 lrc:/etc/rc2_d/S89PRESERVE
legacy_run 19:07:35 lrc:/etc/rc2_d/S94ncalogd
legacy_run 19:07:35 lrc:/etc/rc2_d/S98deallocate
legacy_run 19:07:37 lrc:/etc/rc3_d/S16boot_server
online 19:07:16 svc:/system/svc/restarter:default
online 19:07:19 svc:/network/loopback:default
online 19:07:19 svc:/network/tnctl:default
online 19:07:19 svc:/network/datalink-management:default
online 19:07:20 svc:/system/filesystem/root:default
online 19:07:21 svc:/network/physical:default
online 19:07:21 svc:/system/scheduler:default
online 19:07:21 svc:/system/boot-archive:default
online 19:07:21 svc:/system/identity:node
online 19:07:21 svc:/system/filesystem/usr:default
online 19:07:23 svc:/system/device/local:default
online 19:07:23 svc:/milestone/devices:default
online 19:07:24 svc:/system/filesystem/minimal:default
online 19:07:25 svc:/system/rmtmpfiles:default
online 19:07:25 svc:/system/identity:domain
online 19:07:25 svc:/system/name-service-cache:default
online 19:07:25 svc:/system/resource-mgmt:default
online 19:07:25 svc:/system/cryptosvc:default
online 19:07:25 svc:/application/print/ppd-cache-update:default
online 19:07:25 svc:/system/power:default
online 19:07:25 svc:/network/ipsec/ipsecalgs:default
online 19:07:25 svc:/system/keymap:default
online 19:07:25 svc:/network/ipsec/policy:default
online 19:07:25 svc:/system/sysevent:default
online 19:07:25 svc:/system/picl:default
online 19:07:26 svc:/system/manifest-import:default
online 19:07:26 svc:/network/initial:default
online 19:07:26 svc:/milestone/single-user:default
online 19:07:26 svc:/network/service:default
online 19:07:26 svc:/network/dns/client:default
online 19:07:26 svc:/milestone/name-services:default
online 19:07:26 svc:/system/filesystem/local:default
online 19:07:27 svc:/system/sysidtool:net
online 19:07:27 svc:/system/boot-archive-update:default
online 19:07:28 svc:/network/shares/group:zfs
online 19:07:28 svc:/application/opengl/ogl-select:default
online 19:07:28 svc:/network/shares/group:default
online 19:07:28 svc:/system/dbus:default
online 19:07:28 svc:/system/cron:default
online 19:07:30 svc:/system/coreadm:default
online 19:07:30 svc:/network/samba:default
online 19:07:30 svc:/application/font/fc-cache:default
online 19:07:31 svc:/network/routing-setup:default
online 19:07:31 svc:/network/rpc/bind:default
online 19:07:32 svc:/system/sysidtool:system
online 19:07:32 svc:/milestone/sysconfig:default
online 19:07:32 svc:/system/filesystem/autofs:default
online 19:07:32 svc:/network/inetd:default
online 19:07:32 svc:/network/ipv4-forwarding:default
online 19:07:32 svc:/system/sac:default
online 19:07:33 svc:/system/postrun:default
online 19:07:33 svc:/system/system-log:default
online 19:07:33 svc:/system/utmp:default
online 19:07:33 svc:/system/dumpadm:default
online 19:07:33 svc:/system/console-login:default
online 19:07:33 svc:/system/hal:default
online 19:07:33 svc:/network/dns/multicast:default
online 19:07:33 svc:/network/smtp:sendmail
online 19:07:34 svc:/network/ssh:default
online 19:07:34 svc:/system/filesystem/rmvolmgr:default
online 19:07:34 svc:/network/routing/route:default
online 19:07:35 svc:/system/fmd:default
online 19:07:35 svc:/milestone/multi-user:default
online 19:07:36 svc:/system/intrd:default
online 19:07:37 svc:/network/rpc/gss:default
online 19:07:37 svc:/network/rpc/smserver:default
online 19:07:37 svc:/network/security/ktkt_warn:default
online 19:07:37 svc:/milestone/multi-user-server:default
online 19:07:37 svc:/network/rpc-100235_1/rpc_ticotsord:default
online 19:07:37 svc:/system/zones:default
online 20:29:57 svc:/network/ipfilter:default
online 20:29:57 svc:/milestone/network:default
offline 19:07:20 svc:/application/fixperms:default

Question: Why failed ping on Windows machine?

Last edited by sam; 01-12-2009 at 03:11 PM.
Reply With Quote
Sponsored Links

  #2 (permalink)  
Old 01-12-2009, 07:50 PM
Junior Member
 
Join Date: Dec 2008
Posts: 10
Default

Is belenix ip 192.168.1..35 pingable from the Windows Machine?
Reply With Quote
  #3 (permalink)  
Old 01-13-2009, 04:12 PM
sam sam is offline
Junior Member
 
Join Date: Jan 2009
Posts: 2
Default

Quote:
Originally Posted by mesol View Post
Is belenix ip 192.168.1..35 pingable from the Windows Machine?
Yes!

[email protected]:~$ ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv 4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
icpt0: flags=201100843<UP,BROADCAST,RUNNING,MULTICAST,ROU TER,IPv4,CoS> mtu 1500 index 2
inet 192.168.1.35 netmask ffffff00 broadcast 192.168.1.255
sppp0: flags=10011008d1<UP,POINTOPOINT,RUNNING,NOARP,MULT ICAST,ROUTER,IPv4,FIXEDMTU> mtu 1460 index 4
inet 89.20.125.236 --> 83.219.4.10 netmask ff000000


[email protected]:~$ netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 83.219.4.10 UG 1 10
83.219.4.10 94.50.177.225 UH 1 0 sppp0
192.168.1.0 192.168.1.35 U 1 1 icpt0
127.0.0.1 127.0.0.1 UH 1 4 lo0


[email protected]:~$ ping 83.219.4.10
83.219.4.10 is alive
[email protected]:~$ ping 89.20.125.236
89.20.125.236 is alive
[email protected]:~$ ping 63.216.49.202
63.216.49.202 is alive


C:\>ping 192.168.1.35

Pinging 192.168.1.35 with 32 bytes of data:

Reply from 192.168.1.35: bytes=32 time<1мс TTL=255
Reply from 192.168.1.35: bytes=32 time<1мс TTL=255
Reply from 192.168.1.35: bytes=32 time<1мс TTL=255
Reply from 192.168.1.35: bytes=32 time<1мс TTL=255

Статистика Ping для 192.168.1.35:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>ping 89.20.125.236

Pinging 89.20.125.236 with 32 bytes of data:

Reply from 89.20.125.236: bytes=32 time<1мс TTL=255
Reply from 89.20.125.236: bytes=32 time<1мс TTL=255
Reply from 89.20.125.236: bytes=32 time<1мс TTL=255
Reply from 89.20.125.236: bytes=32 time<1мс TTL=255

Ping statistics for 89.20.125.236:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>ping 83.219.4.10

Pinging 83.219.4.10 with 32 bytes of data:

Request Timed Out.
Request Timed Out.
Request Timed Out.
Request Timed Out.

Ping statistics for 83.219.4.10:
Packets: sent = 4, received = 0, lost = 4 (loss 100%),


C:\>ping 94.50.177.225

Pinging 94.50.177.225 with 32 bytes of data:

Request Timed Out.
Request Timed Out.
Request Timed Out.
Request Timed Out.

Ping statistics for 94.50.177.225:
Packets: sent = 4, received = 0, lost = 4 (loss 100%),
Reply With Quote
  #4 (permalink)  
Old 01-14-2009, 07:30 AM
Junior Member
 
Join Date: Dec 2008
Posts: 10
Default

Have you ensured that the IP forwarding changes that you did have taken into effect?
I suppose you needed to reboot for these to work! or something like routeadm -u
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 09:38 AM.


Powered by vBulletin. Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.