In the most simpliest ways, i want my Solaris 10 to have a static IP as 10.10.10.100, going "out" through the switch we have here - 10.10.10.1 and if not possible, at least to have automated enabled network interface with dhcp on it.
Now i am confrunting with doing after every reboot "plumb" and "dhcp primary" lines on network interface...
I`ve read not only here but also on other results of google, tried many other things, nothing worked until now and AFTER the reboot.
So, it is like this:
- my interface is bfe0
# dladm show-dev
bfe0 link: unknown speed: 0 Mbps duplex: full
- created and fill in the hostname like this in /etc:
# cat hostname.bfe0
laptop
- created and fill in the gateway (switch) like this in /etc:
# cat defaultrouter
10.10.10.1
- modified etc/inet/hosts to be like this (also etc/hosts and etc/inet/ipnodes are the same):
# cat inet/hosts
#
# Internet host table
#
127.0.0.1 localhost loghost
10.10.10.100 laptop laptop
- modified this file:
# cat inet/netmasks
#
10.10.10.0 255.255.255.0
But after every restart i have to plumb the interface and it is not enough:
# ifconfig bfe0 plumb
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
ether 0:15:c5:6b:a:33
As you can see my IP is set to 0.0.0.0 so i have to let it to DHCP to do it:
# ifconfig bfe0 dhcp primary
# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bfe0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 4
inet 10.10.10.10 netmask ffffff00 broadcast 10.10.10.255
ether 0:15:c5:6b:a:33
So, basicly the static IP i want - 10.10.10.100 is not set, but not at least the interface bfe0 is up after restart, every time i have to plumb it manually.
I`m sure there is some mistake of mine... maybe i modified or created some other files.
I read this upper link "Setting Up a Solaris DHCP Client" but still the same problem: bfe0 is not up after reboot and after i enable it it returns me that 0.0.0.0 address...
- one last thing, content of etc/path_to_inst:
# cat path_to_inst
#
# Caution! This file contains critical kernel state
#
"/pseudo" 0 "pseudo"
"/options" 0 "options"
"/xsvc" 0 "xsvc"
"/objmgr" 0 "objmgr"
"/scsi_vhci" 0 "scsi_vhci"
"/isa" 0 "isa"
"/isa/i8042@1,60" 0 "i8042"
"/isa/i8042@1,60/keyboard@0" 0 "kb8042"
"/isa/i8042@1,60/mouse@1" 0 "mouse8042"
"/ramdisk" 0 "ramdisk"
"/cpus" 0 "cpunex"
"/cpus/cpu@0" 0 "cpudrv"
"/pci@0,0" 0 "npe"
"/pci@0,0/display@2" 0 "vgatext"
"/pci@0,0/pci1028,1c9@1d,7" 0 "ehci"
"/pci@0,0/pci1028,1c9@1d,7/storage@1" 0 "scsa2usb"
"/pci@0,0/pci1028,1c9@1d,7/storage@1/disk@0,0" 0 "sd"
"/pci@0,0/pci1028,1c9@1d" 0 "uhci"
"/pci@0,0/pci1028,1c9@1d,1" 1 "uhci"
"/pci@0,0/pci1028,1c9@1d,2" 2 "uhci"
"/pci@0,0/pci1028,1c9@1d,2/mouse@1" 0 "hid"
"/pci@0,0/pci1028,1c9@1d,3" 3 "uhci"
"/pci@0,0/pci8086,2660@1c" 0 "pcie_pci"
"/pci@0,0/pci8086,2666@1c,3" 1 "pcie_pci"
"/pci@0,0/pci1028,1c9@1b" 0 "audiohd"
"/pci@0,0/pci8086,2448@1e" 0 "pci_pci"
"/pci@0,0/pci8086,2448@1e/pci1028,1c9@0" 0 "bfe"
"/pci@0,0/pci-ide@1f,1" 0 "pci-ide"
"/pci@0,0/pci-ide@1f,1/ide@0" 0 "ata"
"/pci@0,0/pci-ide@1f,1/ide@0/sd@1,0" 1 "sd"
"/pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0" 0 "cmdk"
"/pci@0,0/pci1028,1c9@0" 0 "agptarget"
"/iscsi" 0 "iscsi"
"/agpgart" 0 "agpgart"
.... help?
- and forgot about this (nameservers are some dns servers i know):
# cat /etc/resolv.conf
nameserver 193.231.233.1
nameserver 193.231.233.8
# grep hosts /etc/nsswitch.conf
# "hosts:" and "services:" in this file are used only if the
hosts: files dns
Last edited by Cosmin B; 05-27-2008 at 11:52 AM..
Reason: *