Nic config problem - Solaris

This is a discussion on Nic config problem - Solaris ; I have a Solaris 10 box with two nics: rtls0 with an IP address of 192.168.0.12 and subnet mask 255.255.255.0, and fets0 with IP address of 192.168.1.10 and subnet mask 255.255.255.0. The two are connected to two physically separate networks. ...

+ Reply to Thread
Results 1 to 5 of 5

Thread: Nic config problem

  1. Nic config problem

    I have a Solaris 10 box with two nics: rtls0 with an IP address of
    192.168.0.12 and subnet mask 255.255.255.0, and fets0 with IP address of
    192.168.1.10 and subnet mask 255.255.255.0.

    The two are connected to two physically separate networks. A firewall
    on the 192.168.0 subnet is seeing packets from the 192.168.1.10 address
    and dropping them as being spoofed. So, that tells me I have something
    misconfigured on my Solaris box. Anyone know what I have wrong?

    # cat hostname.rtls0
    192.168.0.12
    # cat hostname.fets0
    192.168.1.10
    # cat defaultrouter
    192.168.1.254
    192.168.0.253
    # ifconfig -a
    lo0: flags=2001000849 mtu
    8232 index 1
    inet 127.0.0.1 netmask ff000000
    fets0: flags=1000843 mtu 1500 index 2
    inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
    ether 0:11:5b:d9:f1:24
    rtls0: flags=1000843 mtu 1500 index 3
    inet 192.168.0.12 netmask ffffff00 broadcast 192.168.0.255
    ether 0:d:88:27:40:18
    #

    -bash-3.00$ netstat -nr

    Routing Table: IPv4
    Destination Gateway Flags Ref Use Interface
    -------------------- -------------------- ----- ----- ------ ---------
    192.168.0.0 192.168.0.12 U 1 5 rtls0
    192.168.1.0 192.168.1.10 U 1 1 fets0
    224.0.0.0 127.0.0.1 U 1 0 lo0
    default 192.168.1.254 UG 1 1
    default 192.168.0.253 UG 1 5
    127.0.0.1 127.0.0.1 UH 8 207 lo0
    -bash-3.00$

  2. Re: Nic config problem

    > # cat hostname.rtls0
    > 192.168.0.12
    > # cat hostname.fets0
    > 192.168.1.10


    For starters; an IP adres doesn't really make a nice hostname. You're also
    leaving out the more relevant information like /etc/inet/hosts and
    /etc/inet/ipnodes.

    While the rest of the information seems correct I know that strange things can
    happen if you misconfigure this stuff in any way. Even though it may appear to
    be correctly setup (routing table, ifconfig, etc.) many programs will still
    cause problems resulting in "weird behaviour".

    I'd suggest http://docs.sun.com/app/docs/doc/816-4554 and
    http://docs.sun.com/app/docs/doc/816-4556 as good places to start.


    --
    Groetjes, Peter

    ..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc

  3. Re: Nic config problem

    Lion-O wrote:
    >> # cat hostname.rtls0
    >> 192.168.0.12
    >> # cat hostname.fets0
    >> 192.168.1.10

    >
    > For starters; an IP adres doesn't really make a nice hostname. You're also
    > leaving out the more relevant information like /etc/inet/hosts and
    > /etc/inet/ipnodes.
    >
    > While the rest of the information seems correct I know that strange things can
    > happen if you misconfigure this stuff in any way. Even though it may appear to
    > be correctly setup (routing table, ifconfig, etc.) many programs will still
    > cause problems resulting in "weird behaviour".
    >
    > I'd suggest http://docs.sun.com/app/docs/doc/816-4554 and
    > http://docs.sun.com/app/docs/doc/816-4556 as good places to start.
    >
    >

    Here is what I have in /etc/inet/hosts and /etc/inet/ipnodes (respectively).
    $ cat hosts
    #
    # Internet host table
    #
    127.0.0.1 localhost loghost web
    192.168.0.12 web
    192.168.1.10 web www.mydomain.com

    $ cat ipnodes
    #
    # Internet host table
    #
    ::1 localhost loghost web
    127.0.0.1 localhost loghost web
    -bash-3.00$

  4. Re: Nic config problem

    Fugtruck wrote:
    > [...]
    > Here is what I have in /etc/inet/hosts and /etc/inet/ipnodes
    > (respectively).
    > $ cat hosts
    > #
    > # Internet host table
    > #
    > 127.0.0.1 localhost loghost web
    > 192.168.0.12 web
    > 192.168.1.10 web www.mydomain.com
    >
    > $ cat ipnodes
    > #
    > # Internet host table
    > #
    > ::1 localhost loghost web
    > 127.0.0.1 localhost loghost web
    > -bash-3.00$


    "web" appearing in every entry looks bogus.

    You should give a unique hostname to each one of your IPs.

  5. Re: Nic config problem

    Jean-Louis Liagre wrote:
    > Fugtruck wrote:
    >> [...]
    >> Here is what I have in /etc/inet/hosts and /etc/inet/ipnodes
    >> (respectively).
    >> $ cat hosts
    >> #
    >> # Internet host table
    >> #
    >> 127.0.0.1 localhost loghost web
    >> 192.168.0.12 web
    >> 192.168.1.10 web www.mydomain.com
    >>
    >> $ cat ipnodes
    >> #
    >> # Internet host table
    >> #
    >> ::1 localhost loghost web
    >> 127.0.0.1 localhost loghost web
    >> -bash-3.00$

    >
    > "web" appearing in every entry looks bogus.
    >
    > You should give a unique hostname to each one of your IPs.

    I had wondered about that when I first set it up. I have that changed
    now, but the problem still exists.

+ Reply to Thread