this is odd. if i give a hostname to ifconfig, the interface comes up fine
(or so i think), but I cannot create a route to a gateway behind that
interface. if i give the hostname's ip to ifconfig, everything appears fine.
this doesn't work:
# ifconfig bge1 plumb
# ifconfig bge1 blah up
# ifconfig bge1
bge1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 8
inet 198.168.0.8 netmask ffffff00 broadcast 198.168.0.255
ether 0:3:ba:d0:6a:04
#
# route add default 192.168.0.1
add net default: gateway 192.168.0.1: Network is unreachable
#
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
198.168.0.0 198.168.0.8 U 1 0 bge1
127.0.0.1 127.0.0.1 UH 1 32 lo0
#
but, this works:
# ifconfig bge1 unplumb
# ifconfig bge1 plumb
# ifconfig bge1 192.168.0.8 up
# ifconfig bge1
bge1: flags=1000803<UP,BROADCAST,MULTICAST,IPv4> mtu 1500 index 9
inet 192.168.0.8 netmask ffffff00 broadcast 192.168.0.255
ether 0:3:ba:d0:6a:04
#
# route add default 192.168.0.1
add net default: gateway 192.168.0.1
#
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.0.0 192.168.0.8 U 1 5 bge1
default 192.168.0.1 UG 1 15
127.0.0.1 127.0.0.1 UH 1 32 lo0
#
running solaris10 03/05 on a V210.
what am I missing? Thanks.
::::::::::::::
/etc/inet/hosts
::::::::::::::
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.8 blah loghost
::::::::::::::
/etc/inet/ipnodes
::::::::::::::
#
# Internet host table
#
::1 localhost
127.0.0.1 localhost
198.168.0.8 blah loghost
::::::::::::::
/etc/hostname.bge1
::::::::::::::
blah
::::::::::::::
/etc/nodename
::::::::::::::
blah